{"action":"opened","issue":{"url":"https://api.github.com/repos/HalosGhost/pbpst/issues/40","labels_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/40/comments","events_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/40/events","html_url":"https://github.com/HalosGhost/pbpst/issues/40","id":111863744,"number":40,"title":"add terminal handler support","user":{"login":"buhman","id":728108,"avatar_url":"https://avatars.githubusercontent.com/u/728108?v=3","gravatar_id":"","url":"https://api.github.com/users/buhman","html_url":"https://github.com/buhman","followers_url":"https://api.github.com/users/buhman/followers","following_url":"https://api.github.com/users/buhman/following{/other_user}","gists_url":"https://api.github.com/users/buhman/gists{/gist_id}","starred_url":"https://api.github.com/users/buhman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buhman/subscriptions","organizations_url":"https://api.github.com/users/buhman/orgs","repos_url":"https://api.github.com/users/buhman/repos","events_url":"https://api.github.com/users/buhman/events{/privacy}","received_events_url":"https://api.github.com/users/buhman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-16T16:20:21Z","updated_at":"2015-10-16T16:20:21Z","closed_at":null,"body":"Rougly, you need to reimplement/combine [convert.rb](https://gist.github.com/sickill/504474702dd18c7dc0ec#file-convert-rb) and [terminal.c](https://github.com/asciinema/asciinema.org/blob/master/src/terminal.c) in pbpst.\r\n\r\nThen a combined 'upload recording to pb' function would look something like:\r\n\r\n```bash\r\nrecpb() {\r\n  asciinema rec /tmp/$$.json\r\n  pbpst --convert /tmp/$$.json\r\n}\r\n```\r\n\r\nI'm pretty sure the v1 json (asciinema output) contains things like recording duration information, whereas the player json (convert.rb/pbpst output) doesn't, so the other thing pbpst should do is emit that lost metadata in the query string: `https://ptpb.pw/t/<id>?d=<duration>`.\r\n\r\nI believe in you."}}