{"action":"created","comment":{"url":"https://api.github.com/repos/liveblog/liveblog/pulls/comments/171673438","pull_request_review_id":100568786,"id":171673438,"diff_hunk":"@@ -71,7 +70,20 @@ def addten(date):\n \n \n def ampify(html):\n-    if re.search('iframe', html, re.IGNORECASE):\n+    brightcove_re_array = [\n+        'https?://(www\\.)?players\\.brightcove\\.net/',\n+        '(?P<account>\\d*)/',\n+        '(?P<player>\\w*)',\n+        '_',\n+        '(?P<embed>\\w*)',\n+        '\\/index\\.html\\?videoId=',\n+        '(?P<videoId>\\d*)'\n+    ]\n+    match = re.compile(''.join(brightcove_re_array)).match(html)\n+    if match:\n+        return ('<amp-brightcove data-account=\"{account}\" data-player=\"{player}\" data-embed=\"{embed}\" data-video-id=\"{videoId}\" \\","path":"server/liveblog/themes/template/filters.py","position":24,"original_position":24,"commit_id":"5013f4c9bb886cd11b4c34238a9c7cef064c75d6","original_commit_id":"5013f4c9bb886cd11b4c34238a9c7cef064c75d6","user":{"login":"nistormihai","id":836112,"avatar_url":"https://avatars0.githubusercontent.com/u/836112?v=4","gravatar_id":"","url":"https://api.github.com/users/nistormihai","html_url":"https://github.com/nistormihai","followers_url":"https://api.github.com/users/nistormihai/followers","following_url":"https://api.github.com/users/nistormihai/following{/other_user}","gists_url":"https://api.github.com/users/nistormihai/gists{/gist_id}","starred_url":"https://api.github.com/users/nistormihai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nistormihai/subscriptions","organizations_url":"https://api.github.com/users/nistormihai/orgs","repos_url":"https://api.github.com/users/nistormihai/repos","events_url":"https://api.github.com/users/nistormihai/events{/privacy}","received_events_url":"https://api.github.com/users/nistormihai/received_events","type":"User","site_admin":false},"body":"even if it is easy like that we need to provide the flexibility to change this on the theme level. please adjust this as it is done with twitter Facebook and so on ... the only big problem it is with passing multiple meta data instead just one `original_id`","created_at":"2018-03-01T19:48:18Z","updated_at":"2018-03-01T19:48:18Z","html_url":"https://github.com/liveblog/liveblog/pull/1073#discussion_r171673438","pull_request_url":"https://api.github.com/repos/liveblog/liveblog/pulls/1073","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/liveblog/liveblog/pulls/comments/171673438"},"html":{"href":"https://github.com/liveblog/liveblog/pull/1073#discussion_r171673438"},"pull_request":{"href":"https://api.github.com/repos/liveblog/liveblog/pulls/1073"}},"in_reply_to_id":171672855},"pull_request":{"url":"https://api.github.com/repos/liveblog/liveblog/pulls/1073","id":172306408,"html_url":"https://github.com/liveblog/liveblog/pull/1073","diff_url":"https://github.com/liveblog/liveblog/pull/1073.diff","patch_url":"https://github.com/liveblog/liveblog/pull/1073.patch","issue_url":"https://api.github.com/repos/liveblog/liveblog/issues/1073","number":1073,"state":"open","locked":false,"title":"Feature/brightcove support","user":{"login":"nistormihai","id":836112,"avatar_url":"https://avatars0.githubusercontent.com/u/836112?v=4","gravatar_id":"","url":"https://api.github.com/users/nistormihai","html_url":"https://github.com/nistormihai","followers_url":"https://api.github.com/users/nistormihai/followers","following_url":"https://api.github.com/users/nistormihai/following{/other_user}","gists_url":"https://api.github.com/users/nistormihai/gists{/gist_id}","starred_url":"https://api.github.com/users/nistormihai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nistormihai/subscriptions","organizations_url":"https://api.github.com/users/nistormihai/orgs","repos_url":"https://api.github.com/users/nistormihai/repos","events_url":"https://api.github.com/users/nistormihai/events{/privacy}","received_events_url":"https://api.github.com/users/nistormihai/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T17:44:46Z","updated_at":"2018-03-01T19:48:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f2c6354dae8c1412b47699d3a0e7dfeb03d9cd0","assignee":{"login":"tomaszrondio","id":4939724,"avatar_url":"https://avatars0.githubusercontent.com/u/4939724?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaszrondio","html_url":"https://github.com/tomaszrondio","followers_url":"https://api.github.com/users/tomaszrondio/followers","following_url":"https://api.github.com/users/tomaszrondio/following{/other_user}","gists_url":"https://api.github.com/users/tomaszrondio/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszrondio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszrondio/subscriptions","organizations_url":"https://api.github.com/users/tomaszrondio/orgs","repos_url":"https://api.github.com/users/tomaszrondio/repos","events_url":"https://api.github.com/users/tomaszrondio/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszrondio/received_events","type":"User","site_admin":false},"assignees":[{"login":"tomaszrondio","id":4939724,"avatar_url":"https://avatars0.githubusercontent.com/u/4939724?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaszrondio","html_url":"https://github.com/tomaszrondio","followers_url":"https://api.github.com/users/tomaszrondio/followers","following_url":"https://api.github.com/users/tomaszrondio/following{/other_user}","gists_url":"https://api.github.com/users/tomaszrondio/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszrondio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszrondio/subscriptions","organizations_url":"https://api.github.com/users/tomaszrondio/orgs","repos_url":"https://api.github.com/users/tomaszrondio/repos","events_url":"https://api.github.com/users/tomaszrondio/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszrondio/received_events","type":"User","site_admin":false},{"login":"GyanP","id":10600741,"avatar_url":"https://avatars0.githubusercontent.com/u/10600741?v=4","gravatar_id":"","url":"https://api.github.com/users/GyanP","html_url":"https://github.com/GyanP","followers_url":"https://api.github.com/users/GyanP/followers","following_url":"https://api.github.com/users/GyanP/following{/other_user}","gists_url":"https://api.github.com/users/GyanP/gists{/gist_id}","starred_url":"https://api.github.com/users/GyanP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GyanP/subscriptions","organizations_url":"https://api.github.com/users/GyanP/orgs","repos_url":"https://api.github.com/users/GyanP/repos","events_url":"https://api.github.com/users/GyanP/events{/privacy}","received_events_url":"https://api.github.com/users/GyanP/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"eos87","id":124766,"avatar_url":"https://avatars2.githubusercontent.com/u/124766?v=4","gravatar_id":"","url":"https://api.github.com/users/eos87","html_url":"https://github.com/eos87","followers_url":"https://api.github.com/users/eos87/followers","following_url":"https://api.github.com/users/eos87/following{/other_user}","gists_url":"https://api.github.com/users/eos87/gists{/gist_id}","starred_url":"https://api.github.com/users/eos87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eos87/subscriptions","organizations_url":"https://api.github.com/users/eos87/orgs","repos_url":"https://api.github.com/users/eos87/repos","events_url":"https://api.github.com/users/eos87/events{/privacy}","received_events_url":"https://api.github.com/users/eos87/received_events","type":"User","site_admin":false},{"login":"GyanP","id":10600741,"avatar_url":"https://avatars0.githubusercontent.com/u/10600741?v=4","gravatar_id":"","url":"https://api.github.com/users/GyanP","html_url":"https://github.com/GyanP","followers_url":"https://api.github.com/users/GyanP/followers","following_url":"https://api.github.com/users/GyanP/following{/other_user}","gists_url":"https://api.github.com/users/GyanP/gists{/gist_id}","starred_url":"https://api.github.com/users/GyanP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GyanP/subscriptions","organizations_url":"https://api.github.com/users/GyanP/orgs","repos_url":"https://api.github.com/users/GyanP/repos","events_url":"https://api.github.com/users/GyanP/events{/privacy}","received_events_url":"https://api.github.com/users/GyanP/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":195037204,"url":"https://api.github.com/repos/liveblog/liveblog/labels/need%20reviews","name":"need reviews","color":"eb6420","default":false},{"id":181159634,"url":"https://api.github.com/repos/liveblog/liveblog/labels/wip","name":"wip","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/liveblog/liveblog/pulls/1073/commits","review_comments_url":"https://api.github.com/repos/liveblog/liveblog/pulls/1073/comments","review_comment_url":"https://api.github.com/repos/liveblog/liveblog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/liveblog/liveblog/issues/1073/comments","statuses_url":"https://api.github.com/repos/liveblog/liveblog/statuses/5013f4c9bb886cd11b4c34238a9c7cef064c75d6","head":{"label":"liveblog:feature/brightcove-support","ref":"feature/brightcove-support","sha":"5013f4c9bb886cd11b4c34238a9c7cef064c75d6","user":{"login":"liveblog","id":5654561,"avatar_url":"https://avatars1.githubusercontent.com/u/5654561?v=4","gravatar_id":"","url":"https://api.github.com/users/liveblog","html_url":"https://github.com/liveblog","followers_url":"https://api.github.com/users/liveblog/followers","following_url":"https://api.github.com/users/liveblog/following{/other_user}","gists_url":"https://api.github.com/users/liveblog/gists{/gist_id}","starred_url":"https://api.github.com/users/liveblog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveblog/subscriptions","organizations_url":"https://api.github.com/users/liveblog/orgs","repos_url":"https://api.github.com/users/liveblog/repos","events_url":"https://api.github.com/users/liveblog/events{/privacy}","received_events_url":"https://api.github.com/users/liveblog/received_events","type":"Organization","site_admin":false},"repo":{"id":30958944,"name":"liveblog","full_name":"liveblog/liveblog","owner":{"login":"liveblog","id":5654561,"avatar_url":"https://avatars1.githubusercontent.com/u/5654561?v=4","gravatar_id":"","url":"https://api.github.com/users/liveblog","html_url":"https://github.com/liveblog","followers_url":"https://api.github.com/users/liveblog/followers","following_url":"https://api.github.com/users/liveblog/following{/other_user}","gists_url":"https://api.github.com/users/liveblog/gists{/gist_id}","starred_url":"https://api.github.com/users/liveblog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveblog/subscriptions","organizations_url":"https://api.github.com/users/liveblog/orgs","repos_url":"https://api.github.com/users/liveblog/repos","events_url":"https://api.github.com/users/liveblog/events{/privacy}","received_events_url":"https://api.github.com/users/liveblog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/liveblog/liveblog","description":"Sourcefabric's Live Blog is an open source web app that enables journalists to provide immediate and ongoing coverage on rapidly evolving news events.","fork":false,"url":"https://api.github.com/repos/liveblog/liveblog","forks_url":"https://api.github.com/repos/liveblog/liveblog/forks","keys_url":"https://api.github.com/repos/liveblog/liveblog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liveblog/liveblog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liveblog/liveblog/teams","hooks_url":"https://api.github.com/repos/liveblog/liveblog/hooks","issue_events_url":"https://api.github.com/repos/liveblog/liveblog/issues/events{/number}","events_url":"https://api.github.com/repos/liveblog/liveblog/events","assignees_url":"https://api.github.com/repos/liveblog/liveblog/assignees{/user}","branches_url":"https://api.github.com/repos/liveblog/liveblog/branches{/branch}","tags_url":"https://api.github.com/repos/liveblog/liveblog/tags","blobs_url":"https://api.github.com/repos/liveblog/liveblog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liveblog/liveblog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liveblog/liveblog/git/refs{/sha}","trees_url":"https://api.github.com/repos/liveblog/liveblog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liveblog/liveblog/statuses/{sha}","languages_url":"https://api.github.com/repos/liveblog/liveblog/languages","stargazers_url":"https://api.github.com/repos/liveblog/liveblog/stargazers","contributors_url":"https://api.github.com/repos/liveblog/liveblog/contributors","subscribers_url":"https://api.github.com/repos/liveblog/liveblog/subscribers","subscription_url":"https://api.github.com/repos/liveblog/liveblog/subscription","commits_url":"https://api.github.com/repos/liveblog/liveblog/commits{/sha}","git_commits_url":"https://api.github.com/repos/liveblog/liveblog/git/commits{/sha}","comments_url":"https://api.github.com/repos/liveblog/liveblog/comments{/number}","issue_comment_url":"https://api.github.com/repos/liveblog/liveblog/issues/comments{/number}","contents_url":"https://api.github.com/repos/liveblog/liveblog/contents/{+path}","compare_url":"https://api.github.com/repos/liveblog/liveblog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liveblog/liveblog/merges","archive_url":"https://api.github.com/repos/liveblog/liveblog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liveblog/liveblog/downloads","issues_url":"https://api.github.com/repos/liveblog/liveblog/issues{/number}","pulls_url":"https://api.github.com/repos/liveblog/liveblog/pulls{/number}","milestones_url":"https://api.github.com/repos/liveblog/liveblog/milestones{/number}","notifications_url":"https://api.github.com/repos/liveblog/liveblog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liveblog/liveblog/labels{/name}","releases_url":"https://api.github.com/repos/liveblog/liveblog/releases{/id}","deployments_url":"https://api.github.com/repos/liveblog/liveblog/deployments","created_at":"2015-02-18T09:22:19Z","updated_at":"2018-02-12T17:42:07Z","pushed_at":"2018-03-01T19:42:44Z","git_url":"git://github.com/liveblog/liveblog.git","ssh_url":"git@github.com:liveblog/liveblog.git","clone_url":"https://github.com/liveblog/liveblog.git","svn_url":"https://github.com/liveblog/liveblog","homepage":"https://www.sourcefabric.org/en/liveblog/","size":18243,"stargazers_count":58,"watchers_count":58,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":40,"open_issues":13,"watchers":58,"default_branch":"master"}},"base":{"label":"liveblog:master","ref":"master","sha":"a8b4352453f1f8ac616a78adcaa483ab46d5faaa","user":{"login":"liveblog","id":5654561,"avatar_url":"https://avatars1.githubusercontent.com/u/5654561?v=4","gravatar_id":"","url":"https://api.github.com/users/liveblog","html_url":"https://github.com/liveblog","followers_url":"https://api.github.com/users/liveblog/followers","following_url":"https://api.github.com/users/liveblog/following{/other_user}","gists_url":"https://api.github.com/users/liveblog/gists{/gist_id}","starred_url":"https://api.github.com/users/liveblog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveblog/subscriptions","organizations_url":"https://api.github.com/users/liveblog/orgs","repos_url":"https://api.github.com/users/liveblog/repos","events_url":"https://api.github.com/users/liveblog/events{/privacy}","received_events_url":"https://api.github.com/users/liveblog/received_events","type":"Organization","site_admin":false},"repo":{"id":30958944,"name":"liveblog","full_name":"liveblog/liveblog","owner":{"login":"liveblog","id":5654561,"avatar_url":"https://avatars1.githubusercontent.com/u/5654561?v=4","gravatar_id":"","url":"https://api.github.com/users/liveblog","html_url":"https://github.com/liveblog","followers_url":"https://api.github.com/users/liveblog/followers","following_url":"https://api.github.com/users/liveblog/following{/other_user}","gists_url":"https://api.github.com/users/liveblog/gists{/gist_id}","starred_url":"https://api.github.com/users/liveblog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveblog/subscriptions","organizations_url":"https://api.github.com/users/liveblog/orgs","repos_url":"https://api.github.com/users/liveblog/repos","events_url":"https://api.github.com/users/liveblog/events{/privacy}","received_events_url":"https://api.github.com/users/liveblog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/liveblog/liveblog","description":"Sourcefabric's Live Blog is an open source web app that enables journalists to provide immediate and ongoing coverage on rapidly evolving news events.","fork":false,"url":"https://api.github.com/repos/liveblog/liveblog","forks_url":"https://api.github.com/repos/liveblog/liveblog/forks","keys_url":"https://api.github.com/repos/liveblog/liveblog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liveblog/liveblog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liveblog/liveblog/teams","hooks_url":"https://api.github.com/repos/liveblog/liveblog/hooks","issue_events_url":"https://api.github.com/repos/liveblog/liveblog/issues/events{/number}","events_url":"https://api.github.com/repos/liveblog/liveblog/events","assignees_url":"https://api.github.com/repos/liveblog/liveblog/assignees{/user}","branches_url":"https://api.github.com/repos/liveblog/liveblog/branches{/branch}","tags_url":"https://api.github.com/repos/liveblog/liveblog/tags","blobs_url":"https://api.github.com/repos/liveblog/liveblog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liveblog/liveblog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liveblog/liveblog/git/refs{/sha}","trees_url":"https://api.github.com/repos/liveblog/liveblog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liveblog/liveblog/statuses/{sha}","languages_url":"https://api.github.com/repos/liveblog/liveblog/languages","stargazers_url":"https://api.github.com/repos/liveblog/liveblog/stargazers","contributors_url":"https://api.github.com/repos/liveblog/liveblog/contributors","subscribers_url":"https://api.github.com/repos/liveblog/liveblog/subscribers","subscription_url":"https://api.github.com/repos/liveblog/liveblog/subscription","commits_url":"https://api.github.com/repos/liveblog/liveblog/commits{/sha}","git_commits_url":"https://api.github.com/repos/liveblog/liveblog/git/commits{/sha}","comments_url":"https://api.github.com/repos/liveblog/liveblog/comments{/number}","issue_comment_url":"https://api.github.com/repos/liveblog/liveblog/issues/comments{/number}","contents_url":"https://api.github.com/repos/liveblog/liveblog/contents/{+path}","compare_url":"https://api.github.com/repos/liveblog/liveblog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liveblog/liveblog/merges","archive_url":"https://api.github.com/repos/liveblog/liveblog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liveblog/liveblog/downloads","issues_url":"https://api.github.com/repos/liveblog/liveblog/issues{/number}","pulls_url":"https://api.github.com/repos/liveblog/liveblog/pulls{/number}","milestones_url":"https://api.github.com/repos/liveblog/liveblog/milestones{/number}","notifications_url":"https://api.github.com/repos/liveblog/liveblog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liveblog/liveblog/labels{/name}","releases_url":"https://api.github.com/repos/liveblog/liveblog/releases{/id}","deployments_url":"https://api.github.com/repos/liveblog/liveblog/deployments","created_at":"2015-02-18T09:22:19Z","updated_at":"2018-02-12T17:42:07Z","pushed_at":"2018-03-01T19:42:44Z","git_url":"git://github.com/liveblog/liveblog.git","ssh_url":"git@github.com:liveblog/liveblog.git","clone_url":"https://github.com/liveblog/liveblog.git","svn_url":"https://github.com/liveblog/liveblog","homepage":"https://www.sourcefabric.org/en/liveblog/","size":18243,"stargazers_count":58,"watchers_count":58,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":40,"open_issues":13,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/liveblog/liveblog/pulls/1073"},"html":{"href":"https://github.com/liveblog/liveblog/pull/1073"},"issue":{"href":"https://api.github.com/repos/liveblog/liveblog/issues/1073"},"comments":{"href":"https://api.github.com/repos/liveblog/liveblog/issues/1073/comments"},"review_comments":{"href":"https://api.github.com/repos/liveblog/liveblog/pulls/1073/comments"},"review_comment":{"href":"https://api.github.com/repos/liveblog/liveblog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/liveblog/liveblog/pulls/1073/commits"},"statuses":{"href":"https://api.github.com/repos/liveblog/liveblog/statuses/5013f4c9bb886cd11b4c34238a9c7cef064c75d6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nistormihai"}}