{"action":"created","comment":{"url":"https://api.github.com/repos/kaltura/liveDVR/pulls/comments/82521033","pull_request_review_id":3424501,"id":82521033,"diff_hunk":"@@ -0,0 +1,60 @@\n+import os\n+import subprocess\n+import logging.handlers\n+from config import get_config\n+from TaskRunner import TaskBase\n+ffmpeg_path = get_config('ffmpeg_path')\n+\n+\n+class ConcatenationTask(TaskBase):\n+\n+    # global variables\n+    manifest_input_file = \"manifest.txt\"\n+\n+    @staticmethod\n+    def sorted_ls(path):\n+        mtime = lambda f: os.stat(os.path.join(path, f)).st_mtime\n+        return list(sorted(os.listdir(path), key=mtime))\n+\n+    def create_manifest(self):\n+        self.logger.info(\"Creating manifest file for the recorded entry %s\", self.entry_id)\n+        full_path = os.path.join(self.recording_path, self.manifest_input_file)\n+        fo = open(full_path, \"wb\")","path":"recordingUploader/ConcatinationTask.py","position":22,"original_position":22,"commit_id":"17544bb332732c5bbad65b2d98514e8c8a7e95c9","original_commit_id":"17544bb332732c5bbad65b2d98514e8c8a7e95c9","user":{"login":"kalturaguy","id":7511565,"avatar_url":"https://avatars.githubusercontent.com/u/7511565?v=3","gravatar_id":"","url":"https://api.github.com/users/kalturaguy","html_url":"https://github.com/kalturaguy","followers_url":"https://api.github.com/users/kalturaguy/followers","following_url":"https://api.github.com/users/kalturaguy/following{/other_user}","gists_url":"https://api.github.com/users/kalturaguy/gists{/gist_id}","starred_url":"https://api.github.com/users/kalturaguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalturaguy/subscriptions","organizations_url":"https://api.github.com/users/kalturaguy/orgs","repos_url":"https://api.github.com/users/kalturaguy/repos","events_url":"https://api.github.com/users/kalturaguy/events{/privacy}","received_events_url":"https://api.github.com/users/kalturaguy/received_events","type":"User","site_admin":false},"body":"use with open(full_path, \"wb\") as fo:","created_at":"2016-10-09T11:54:09Z","updated_at":"2016-10-09T11:54:10Z","html_url":"https://github.com/kaltura/liveDVR/pull/268#discussion_r82521033","pull_request_url":"https://api.github.com/repos/kaltura/liveDVR/pulls/268","_links":{"self":{"href":"https://api.github.com/repos/kaltura/liveDVR/pulls/comments/82521033"},"html":{"href":"https://github.com/kaltura/liveDVR/pull/268#discussion_r82521033"},"pull_request":{"href":"https://api.github.com/repos/kaltura/liveDVR/pulls/268"}}},"pull_request":{"url":"https://api.github.com/repos/kaltura/liveDVR/pulls/268","id":88578276,"html_url":"https://github.com/kaltura/liveDVR/pull/268","diff_url":"https://github.com/kaltura/liveDVR/pull/268.diff","patch_url":"https://github.com/kaltura/liveDVR/pull/268.patch","issue_url":"https://api.github.com/repos/kaltura/liveDVR/issues/268","number":268,"state":"open","locked":false,"title":"1 0 recording refactor","user":{"login":"ronyad","id":15100662,"avatar_url":"https://avatars.githubusercontent.com/u/15100662?v=3","gravatar_id":"","url":"https://api.github.com/users/ronyad","html_url":"https://github.com/ronyad","followers_url":"https://api.github.com/users/ronyad/followers","following_url":"https://api.github.com/users/ronyad/following{/other_user}","gists_url":"https://api.github.com/users/ronyad/gists{/gist_id}","starred_url":"https://api.github.com/users/ronyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronyad/subscriptions","organizations_url":"https://api.github.com/users/ronyad/orgs","repos_url":"https://api.github.com/users/ronyad/repos","events_url":"https://api.github.com/users/ronyad/events{/privacy}","received_events_url":"https://api.github.com/users/ronyad/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-09T11:44:56Z","updated_at":"2016-10-09T11:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b0b448a1826e250a69f0c34bd3b0d335caff6a5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaltura/liveDVR/pulls/268/commits","review_comments_url":"https://api.github.com/repos/kaltura/liveDVR/pulls/268/comments","review_comment_url":"https://api.github.com/repos/kaltura/liveDVR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaltura/liveDVR/issues/268/comments","statuses_url":"https://api.github.com/repos/kaltura/liveDVR/statuses/17544bb332732c5bbad65b2d98514e8c8a7e95c9","head":{"label":"kaltura:1-0-recordingRefactor","ref":"1-0-recordingRefactor","sha":"17544bb332732c5bbad65b2d98514e8c8a7e95c9","user":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"repo":{"id":40581240,"name":"liveDVR","full_name":"kaltura/liveDVR","owner":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaltura/liveDVR","description":"DVR implementation built on top of live streams","fork":false,"url":"https://api.github.com/repos/kaltura/liveDVR","forks_url":"https://api.github.com/repos/kaltura/liveDVR/forks","keys_url":"https://api.github.com/repos/kaltura/liveDVR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaltura/liveDVR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaltura/liveDVR/teams","hooks_url":"https://api.github.com/repos/kaltura/liveDVR/hooks","issue_events_url":"https://api.github.com/repos/kaltura/liveDVR/issues/events{/number}","events_url":"https://api.github.com/repos/kaltura/liveDVR/events","assignees_url":"https://api.github.com/repos/kaltura/liveDVR/assignees{/user}","branches_url":"https://api.github.com/repos/kaltura/liveDVR/branches{/branch}","tags_url":"https://api.github.com/repos/kaltura/liveDVR/tags","blobs_url":"https://api.github.com/repos/kaltura/liveDVR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaltura/liveDVR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaltura/liveDVR/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaltura/liveDVR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaltura/liveDVR/statuses/{sha}","languages_url":"https://api.github.com/repos/kaltura/liveDVR/languages","stargazers_url":"https://api.github.com/repos/kaltura/liveDVR/stargazers","contributors_url":"https://api.github.com/repos/kaltura/liveDVR/contributors","subscribers_url":"https://api.github.com/repos/kaltura/liveDVR/subscribers","subscription_url":"https://api.github.com/repos/kaltura/liveDVR/subscription","commits_url":"https://api.github.com/repos/kaltura/liveDVR/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaltura/liveDVR/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaltura/liveDVR/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaltura/liveDVR/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaltura/liveDVR/contents/{+path}","compare_url":"https://api.github.com/repos/kaltura/liveDVR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaltura/liveDVR/merges","archive_url":"https://api.github.com/repos/kaltura/liveDVR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaltura/liveDVR/downloads","issues_url":"https://api.github.com/repos/kaltura/liveDVR/issues{/number}","pulls_url":"https://api.github.com/repos/kaltura/liveDVR/pulls{/number}","milestones_url":"https://api.github.com/repos/kaltura/liveDVR/milestones{/number}","notifications_url":"https://api.github.com/repos/kaltura/liveDVR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaltura/liveDVR/labels{/name}","releases_url":"https://api.github.com/repos/kaltura/liveDVR/releases{/id}","deployments_url":"https://api.github.com/repos/kaltura/liveDVR/deployments","created_at":"2015-08-12T05:08:28Z","updated_at":"2016-03-27T01:32:22Z","pushed_at":"2016-10-09T11:49:36Z","git_url":"git://github.com/kaltura/liveDVR.git","ssh_url":"git@github.com:kaltura/liveDVR.git","clone_url":"https://github.com/kaltura/liveDVR.git","svn_url":"https://github.com/kaltura/liveDVR","homepage":null,"size":168813,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":2,"default_branch":"1.0"}},"base":{"label":"kaltura:1.0","ref":"1.0","sha":"24c0cfcd00a0289a3f3c8b9093cb15818ef98b03","user":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"repo":{"id":40581240,"name":"liveDVR","full_name":"kaltura/liveDVR","owner":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaltura/liveDVR","description":"DVR implementation built on top of live streams","fork":false,"url":"https://api.github.com/repos/kaltura/liveDVR","forks_url":"https://api.github.com/repos/kaltura/liveDVR/forks","keys_url":"https://api.github.com/repos/kaltura/liveDVR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaltura/liveDVR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaltura/liveDVR/teams","hooks_url":"https://api.github.com/repos/kaltura/liveDVR/hooks","issue_events_url":"https://api.github.com/repos/kaltura/liveDVR/issues/events{/number}","events_url":"https://api.github.com/repos/kaltura/liveDVR/events","assignees_url":"https://api.github.com/repos/kaltura/liveDVR/assignees{/user}","branches_url":"https://api.github.com/repos/kaltura/liveDVR/branches{/branch}","tags_url":"https://api.github.com/repos/kaltura/liveDVR/tags","blobs_url":"https://api.github.com/repos/kaltura/liveDVR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaltura/liveDVR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaltura/liveDVR/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaltura/liveDVR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaltura/liveDVR/statuses/{sha}","languages_url":"https://api.github.com/repos/kaltura/liveDVR/languages","stargazers_url":"https://api.github.com/repos/kaltura/liveDVR/stargazers","contributors_url":"https://api.github.com/repos/kaltura/liveDVR/contributors","subscribers_url":"https://api.github.com/repos/kaltura/liveDVR/subscribers","subscription_url":"https://api.github.com/repos/kaltura/liveDVR/subscription","commits_url":"https://api.github.com/repos/kaltura/liveDVR/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaltura/liveDVR/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaltura/liveDVR/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaltura/liveDVR/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaltura/liveDVR/contents/{+path}","compare_url":"https://api.github.com/repos/kaltura/liveDVR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaltura/liveDVR/merges","archive_url":"https://api.github.com/repos/kaltura/liveDVR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaltura/liveDVR/downloads","issues_url":"https://api.github.com/repos/kaltura/liveDVR/issues{/number}","pulls_url":"https://api.github.com/repos/kaltura/liveDVR/pulls{/number}","milestones_url":"https://api.github.com/repos/kaltura/liveDVR/milestones{/number}","notifications_url":"https://api.github.com/repos/kaltura/liveDVR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaltura/liveDVR/labels{/name}","releases_url":"https://api.github.com/repos/kaltura/liveDVR/releases{/id}","deployments_url":"https://api.github.com/repos/kaltura/liveDVR/deployments","created_at":"2015-08-12T05:08:28Z","updated_at":"2016-03-27T01:32:22Z","pushed_at":"2016-10-09T11:49:36Z","git_url":"git://github.com/kaltura/liveDVR.git","ssh_url":"git@github.com:kaltura/liveDVR.git","clone_url":"https://github.com/kaltura/liveDVR.git","svn_url":"https://github.com/kaltura/liveDVR","homepage":null,"size":168813,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":2,"default_branch":"1.0"}},"_links":{"self":{"href":"https://api.github.com/repos/kaltura/liveDVR/pulls/268"},"html":{"href":"https://github.com/kaltura/liveDVR/pull/268"},"issue":{"href":"https://api.github.com/repos/kaltura/liveDVR/issues/268"},"comments":{"href":"https://api.github.com/repos/kaltura/liveDVR/issues/268/comments"},"review_comments":{"href":"https://api.github.com/repos/kaltura/liveDVR/pulls/268/comments"},"review_comment":{"href":"https://api.github.com/repos/kaltura/liveDVR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaltura/liveDVR/pulls/268/commits"},"statuses":{"href":"https://api.github.com/repos/kaltura/liveDVR/statuses/17544bb332732c5bbad65b2d98514e8c8a7e95c9"}}}}
{"actor":{"display_login":"kalturaguy"}}