{"action":"created","comment":{"url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/comments/41528986","id":41528986,"diff_hunk":"@@ -215,15 +231,9 @@ function run()\n                     $this->output[] = UNL_MediaHub_Feed_Image::getByTitle($this->options['title']);\n                 }\n                 break;\n-            case 'media_srt':","path":"src/UNL/MediaHub/Controller.php","position":52,"original_position":52,"commit_id":"f4f3f5c4a7b4db6b8a9a54a3fad2502fc79a2e00","original_commit_id":"f4f3f5c4a7b4db6b8a9a54a3fad2502fc79a2e00","user":{"login":"mfairchild365","id":498678,"avatar_url":"https://avatars.githubusercontent.com/u/498678?v=3","gravatar_id":"","url":"https://api.github.com/users/mfairchild365","html_url":"https://github.com/mfairchild365","followers_url":"https://api.github.com/users/mfairchild365/followers","following_url":"https://api.github.com/users/mfairchild365/following{/other_user}","gists_url":"https://api.github.com/users/mfairchild365/gists{/gist_id}","starred_url":"https://api.github.com/users/mfairchild365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfairchild365/subscriptions","organizations_url":"https://api.github.com/users/mfairchild365/orgs","repos_url":"https://api.github.com/users/mfairchild365/repos","events_url":"https://api.github.com/users/mfairchild365/events{/privacy}","received_events_url":"https://api.github.com/users/mfairchild365/received_events","type":"User","site_admin":false},"body":"There should not be.","created_at":"2015-10-08T15:34:30Z","updated_at":"2015-10-08T15:34:30Z","html_url":"https://github.com/unl/UNL_MediaHub/pull/266#discussion_r41528986","pull_request_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266","_links":{"self":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/comments/41528986"},"html":{"href":"https://github.com/unl/UNL_MediaHub/pull/266#discussion_r41528986"},"pull_request":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266"}}},"pull_request":{"url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266","id":47161420,"html_url":"https://github.com/unl/UNL_MediaHub/pull/266","diff_url":"https://github.com/unl/UNL_MediaHub/pull/266.diff","patch_url":"https://github.com/unl/UNL_MediaHub/pull/266.patch","issue_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/266","number":266,"state":"open","locked":false,"title":"WIP: Add feature to order captions","user":{"login":"mfairchild365","id":498678,"avatar_url":"https://avatars.githubusercontent.com/u/498678?v=3","gravatar_id":"","url":"https://api.github.com/users/mfairchild365","html_url":"https://github.com/mfairchild365","followers_url":"https://api.github.com/users/mfairchild365/followers","following_url":"https://api.github.com/users/mfairchild365/following{/other_user}","gists_url":"https://api.github.com/users/mfairchild365/gists{/gist_id}","starred_url":"https://api.github.com/users/mfairchild365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfairchild365/subscriptions","organizations_url":"https://api.github.com/users/mfairchild365/orgs","repos_url":"https://api.github.com/users/mfairchild365/repos","events_url":"https://api.github.com/users/mfairchild365/events{/privacy}","received_events_url":"https://api.github.com/users/mfairchild365/received_events","type":"User","site_admin":false},"body":"This PR reworks how we store captions internally and allows for users to order captions for their videos.\r\n\r\nCaptions are now cached in the database instead of being served by amara. However, amara can still be used, but the user will have to manually request that mediahub get the newest version of the captions.\r\n\r\nThis also bumps the php version requirement to 5.5.\r\n\r\nTo deploy this change:\r\n* update composer libraries with `composer install`\r\n* update the database by running the update script, update.php\r\n* clear the cache in the tmp directory (remove all cache files)\r\n* add `scripts/rev_cron.php` as a cron job that runs once every 5 min.\r\n* run `scripts/amara_update_captions.php` to pull down captions for all videos (this will take a long time)\r\n* add appropriate api keys to the configuration\r\n\r\n@spennythug is still working on some UI updates, but once that is complete this should be ready to go.","created_at":"2015-10-08T14:41:07Z","updated_at":"2015-10-08T15:34:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"132bf6b7429c1a46308fcea27a66baea309fda9d","assignee":{"login":"kabel","id":675956,"avatar_url":"https://avatars.githubusercontent.com/u/675956?v=3","gravatar_id":"","url":"https://api.github.com/users/kabel","html_url":"https://github.com/kabel","followers_url":"https://api.github.com/users/kabel/followers","following_url":"https://api.github.com/users/kabel/following{/other_user}","gists_url":"https://api.github.com/users/kabel/gists{/gist_id}","starred_url":"https://api.github.com/users/kabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabel/subscriptions","organizations_url":"https://api.github.com/users/kabel/orgs","repos_url":"https://api.github.com/users/kabel/repos","events_url":"https://api.github.com/users/kabel/events{/privacy}","received_events_url":"https://api.github.com/users/kabel/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266/commits","review_comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266/comments","review_comment_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/266/comments","statuses_url":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/f4f3f5c4a7b4db6b8a9a54a3fad2502fc79a2e00","head":{"label":"unl:caption-orders","ref":"caption-orders","sha":"f4f3f5c4a7b4db6b8a9a54a3fad2502fc79a2e00","user":{"login":"unl","id":704049,"avatar_url":"https://avatars.githubusercontent.com/u/704049?v=3","gravatar_id":"","url":"https://api.github.com/users/unl","html_url":"https://github.com/unl","followers_url":"https://api.github.com/users/unl/followers","following_url":"https://api.github.com/users/unl/following{/other_user}","gists_url":"https://api.github.com/users/unl/gists{/gist_id}","starred_url":"https://api.github.com/users/unl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unl/subscriptions","organizations_url":"https://api.github.com/users/unl/orgs","repos_url":"https://api.github.com/users/unl/repos","events_url":"https://api.github.com/users/unl/events{/privacy}","received_events_url":"https://api.github.com/users/unl/received_events","type":"Organization","site_admin":false},"repo":{"id":1579338,"name":"UNL_MediaHub","full_name":"unl/UNL_MediaHub","owner":{"login":"unl","id":704049,"avatar_url":"https://avatars.githubusercontent.com/u/704049?v=3","gravatar_id":"","url":"https://api.github.com/users/unl","html_url":"https://github.com/unl","followers_url":"https://api.github.com/users/unl/followers","following_url":"https://api.github.com/users/unl/following{/other_user}","gists_url":"https://api.github.com/users/unl/gists{/gist_id}","starred_url":"https://api.github.com/users/unl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unl/subscriptions","organizations_url":"https://api.github.com/users/unl/orgs","repos_url":"https://api.github.com/users/unl/repos","events_url":"https://api.github.com/users/unl/events{/privacy}","received_events_url":"https://api.github.com/users/unl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unl/UNL_MediaHub","description":"A media aggregator for educational institutions","fork":false,"url":"https://api.github.com/repos/unl/UNL_MediaHub","forks_url":"https://api.github.com/repos/unl/UNL_MediaHub/forks","keys_url":"https://api.github.com/repos/unl/UNL_MediaHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unl/UNL_MediaHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unl/UNL_MediaHub/teams","hooks_url":"https://api.github.com/repos/unl/UNL_MediaHub/hooks","issue_events_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/events{/number}","events_url":"https://api.github.com/repos/unl/UNL_MediaHub/events","assignees_url":"https://api.github.com/repos/unl/UNL_MediaHub/assignees{/user}","branches_url":"https://api.github.com/repos/unl/UNL_MediaHub/branches{/branch}","tags_url":"https://api.github.com/repos/unl/UNL_MediaHub/tags","blobs_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/{sha}","languages_url":"https://api.github.com/repos/unl/UNL_MediaHub/languages","stargazers_url":"https://api.github.com/repos/unl/UNL_MediaHub/stargazers","contributors_url":"https://api.github.com/repos/unl/UNL_MediaHub/contributors","subscribers_url":"https://api.github.com/repos/unl/UNL_MediaHub/subscribers","subscription_url":"https://api.github.com/repos/unl/UNL_MediaHub/subscription","commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/unl/UNL_MediaHub/contents/{+path}","compare_url":"https://api.github.com/repos/unl/UNL_MediaHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unl/UNL_MediaHub/merges","archive_url":"https://api.github.com/repos/unl/UNL_MediaHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unl/UNL_MediaHub/downloads","issues_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues{/number}","pulls_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls{/number}","milestones_url":"https://api.github.com/repos/unl/UNL_MediaHub/milestones{/number}","notifications_url":"https://api.github.com/repos/unl/UNL_MediaHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unl/UNL_MediaHub/labels{/name}","releases_url":"https://api.github.com/repos/unl/UNL_MediaHub/releases{/id}","created_at":"2011-04-06T21:24:40Z","updated_at":"2015-05-07T19:35:03Z","pushed_at":"2015-10-08T14:44:15Z","git_url":"git://github.com/unl/UNL_MediaHub.git","ssh_url":"git@github.com:unl/UNL_MediaHub.git","clone_url":"https://github.com/unl/UNL_MediaHub.git","svn_url":"https://github.com/unl/UNL_MediaHub","homepage":"http://mediahub.unl.edu/","size":146555,"stargazers_count":10,"watchers_count":10,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":22,"forks":5,"open_issues":22,"watchers":10,"default_branch":"4.0_template"}},"base":{"label":"unl:4.0_template","ref":"4.0_template","sha":"9e955c1ab32211a7b4eee2a42861b2c4af69a284","user":{"login":"unl","id":704049,"avatar_url":"https://avatars.githubusercontent.com/u/704049?v=3","gravatar_id":"","url":"https://api.github.com/users/unl","html_url":"https://github.com/unl","followers_url":"https://api.github.com/users/unl/followers","following_url":"https://api.github.com/users/unl/following{/other_user}","gists_url":"https://api.github.com/users/unl/gists{/gist_id}","starred_url":"https://api.github.com/users/unl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unl/subscriptions","organizations_url":"https://api.github.com/users/unl/orgs","repos_url":"https://api.github.com/users/unl/repos","events_url":"https://api.github.com/users/unl/events{/privacy}","received_events_url":"https://api.github.com/users/unl/received_events","type":"Organization","site_admin":false},"repo":{"id":1579338,"name":"UNL_MediaHub","full_name":"unl/UNL_MediaHub","owner":{"login":"unl","id":704049,"avatar_url":"https://avatars.githubusercontent.com/u/704049?v=3","gravatar_id":"","url":"https://api.github.com/users/unl","html_url":"https://github.com/unl","followers_url":"https://api.github.com/users/unl/followers","following_url":"https://api.github.com/users/unl/following{/other_user}","gists_url":"https://api.github.com/users/unl/gists{/gist_id}","starred_url":"https://api.github.com/users/unl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unl/subscriptions","organizations_url":"https://api.github.com/users/unl/orgs","repos_url":"https://api.github.com/users/unl/repos","events_url":"https://api.github.com/users/unl/events{/privacy}","received_events_url":"https://api.github.com/users/unl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unl/UNL_MediaHub","description":"A media aggregator for educational institutions","fork":false,"url":"https://api.github.com/repos/unl/UNL_MediaHub","forks_url":"https://api.github.com/repos/unl/UNL_MediaHub/forks","keys_url":"https://api.github.com/repos/unl/UNL_MediaHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unl/UNL_MediaHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unl/UNL_MediaHub/teams","hooks_url":"https://api.github.com/repos/unl/UNL_MediaHub/hooks","issue_events_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/events{/number}","events_url":"https://api.github.com/repos/unl/UNL_MediaHub/events","assignees_url":"https://api.github.com/repos/unl/UNL_MediaHub/assignees{/user}","branches_url":"https://api.github.com/repos/unl/UNL_MediaHub/branches{/branch}","tags_url":"https://api.github.com/repos/unl/UNL_MediaHub/tags","blobs_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/{sha}","languages_url":"https://api.github.com/repos/unl/UNL_MediaHub/languages","stargazers_url":"https://api.github.com/repos/unl/UNL_MediaHub/stargazers","contributors_url":"https://api.github.com/repos/unl/UNL_MediaHub/contributors","subscribers_url":"https://api.github.com/repos/unl/UNL_MediaHub/subscribers","subscription_url":"https://api.github.com/repos/unl/UNL_MediaHub/subscription","commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/unl/UNL_MediaHub/contents/{+path}","compare_url":"https://api.github.com/repos/unl/UNL_MediaHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unl/UNL_MediaHub/merges","archive_url":"https://api.github.com/repos/unl/UNL_MediaHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unl/UNL_MediaHub/downloads","issues_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues{/number}","pulls_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls{/number}","milestones_url":"https://api.github.com/repos/unl/UNL_MediaHub/milestones{/number}","notifications_url":"https://api.github.com/repos/unl/UNL_MediaHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unl/UNL_MediaHub/labels{/name}","releases_url":"https://api.github.com/repos/unl/UNL_MediaHub/releases{/id}","created_at":"2011-04-06T21:24:40Z","updated_at":"2015-05-07T19:35:03Z","pushed_at":"2015-10-08T14:44:15Z","git_url":"git://github.com/unl/UNL_MediaHub.git","ssh_url":"git@github.com:unl/UNL_MediaHub.git","clone_url":"https://github.com/unl/UNL_MediaHub.git","svn_url":"https://github.com/unl/UNL_MediaHub","homepage":"http://mediahub.unl.edu/","size":146555,"stargazers_count":10,"watchers_count":10,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":22,"forks":5,"open_issues":22,"watchers":10,"default_branch":"4.0_template"}},"_links":{"self":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266"},"html":{"href":"https://github.com/unl/UNL_MediaHub/pull/266"},"issue":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/issues/266"},"comments":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/issues/266/comments"},"review_comments":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266/comments"},"review_comment":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/266/commits"},"statuses":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/f4f3f5c4a7b4db6b8a9a54a3fad2502fc79a2e00"}}}}