{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments/34518138","id":34518138,"diff_hunk":"@@ -1,2 +1,27 @@\n+function getSlug() {\n+  var pathname = window.location.pathname,\n+      re = /\\/popcorn\\/edit\\/(.+)\\//,\n+      match = pathname.match(re);\n+\n+  return match[1];\n+}\n+\n+PopcornEditor.listen(PopcornEditor.events.loaded, function () {\n+  $.ajax({\n+    method: 'GET',\n+    url: '/popcorn/data/',\n+    contentType: 'application/json',\n+    data: {\n+      slug: getSlug()\n+    }\n+  })","path":"airmozilla/popcorn/static/popcorn/js/editor.js","position":17,"original_position":17,"commit_id":"2a8a9f57953151992f31450453436b3e29b51a14","original_commit_id":"2a8a9f57953151992f31450453436b3e29b51a14","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"body":"You can actually just do\r\n```javascript\r\n$.get('/popcorn/data/', {slug: getSlug()})\r\n.done...\r\n```","created_at":"2015-07-13T22:11:14Z","updated_at":"2015-07-13T22:11:14Z","html_url":"https://github.com/mozilla/airmozilla/pull/395#discussion_r34518138","pull_request_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/395","_links":{"self":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments/34518138"},"html":{"href":"https://github.com/mozilla/airmozilla/pull/395#discussion_r34518138"},"pull_request":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/395"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/airmozilla/pulls/395","id":39845325,"html_url":"https://github.com/mozilla/airmozilla/pull/395","diff_url":"https://github.com/mozilla/airmozilla/pull/395.diff","patch_url":"https://github.com/mozilla/airmozilla/pull/395.patch","issue_url":"https://api.github.com/repos/mozilla/airmozilla/issues/395","number":395,"state":"open","locked":false,"title":"Editor load video","user":{"login":"Nolski","id":2600677,"avatar_url":"https://avatars.githubusercontent.com/u/2600677?v=3","gravatar_id":"","url":"https://api.github.com/users/Nolski","html_url":"https://github.com/Nolski","followers_url":"https://api.github.com/users/Nolski/followers","following_url":"https://api.github.com/users/Nolski/following{/other_user}","gists_url":"https://api.github.com/users/Nolski/gists{/gist_id}","starred_url":"https://api.github.com/users/Nolski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nolski/subscriptions","organizations_url":"https://api.github.com/users/Nolski/orgs","repos_url":"https://api.github.com/users/Nolski/repos","events_url":"https://api.github.com/users/Nolski/events{/privacy}","received_events_url":"https://api.github.com/users/Nolski/received_events","type":"User","site_admin":false},"body":"This updates the video editor page to now auto load the video into the editor.\r\n\r\nThis PR includes changes to popcorn-editor.js as well. To mess around the UI changes head to http://{domain}/popcorn/edit/{slug}","created_at":"2015-07-13T19:10:37Z","updated_at":"2015-07-13T22:11:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"227d8b821651dadfb048cdb33cf507f32d79dded","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/395/commits","review_comments_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/395/comments","review_comment_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/airmozilla/issues/395/comments","statuses_url":"https://api.github.com/repos/mozilla/airmozilla/statuses/2a8a9f57953151992f31450453436b3e29b51a14","head":{"label":"Nolski:editor-load-video","ref":"editor-load-video","sha":"2a8a9f57953151992f31450453436b3e29b51a14","user":{"login":"Nolski","id":2600677,"avatar_url":"https://avatars.githubusercontent.com/u/2600677?v=3","gravatar_id":"","url":"https://api.github.com/users/Nolski","html_url":"https://github.com/Nolski","followers_url":"https://api.github.com/users/Nolski/followers","following_url":"https://api.github.com/users/Nolski/following{/other_user}","gists_url":"https://api.github.com/users/Nolski/gists{/gist_id}","starred_url":"https://api.github.com/users/Nolski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nolski/subscriptions","organizations_url":"https://api.github.com/users/Nolski/orgs","repos_url":"https://api.github.com/users/Nolski/repos","events_url":"https://api.github.com/users/Nolski/events{/privacy}","received_events_url":"https://api.github.com/users/Nolski/received_events","type":"User","site_admin":false},"repo":{"id":36747435,"name":"airmozilla","full_name":"Nolski/airmozilla","owner":{"login":"Nolski","id":2600677,"avatar_url":"https://avatars.githubusercontent.com/u/2600677?v=3","gravatar_id":"","url":"https://api.github.com/users/Nolski","html_url":"https://github.com/Nolski","followers_url":"https://api.github.com/users/Nolski/followers","following_url":"https://api.github.com/users/Nolski/following{/other_user}","gists_url":"https://api.github.com/users/Nolski/gists{/gist_id}","starred_url":"https://api.github.com/users/Nolski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nolski/subscriptions","organizations_url":"https://api.github.com/users/Nolski/orgs","repos_url":"https://api.github.com/users/Nolski/repos","events_url":"https://api.github.com/users/Nolski/events{/privacy}","received_events_url":"https://api.github.com/users/Nolski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nolski/airmozilla","description":"AirMozilla is the video broadcasting site for the Mozilla project","fork":true,"url":"https://api.github.com/repos/Nolski/airmozilla","forks_url":"https://api.github.com/repos/Nolski/airmozilla/forks","keys_url":"https://api.github.com/repos/Nolski/airmozilla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nolski/airmozilla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nolski/airmozilla/teams","hooks_url":"https://api.github.com/repos/Nolski/airmozilla/hooks","issue_events_url":"https://api.github.com/repos/Nolski/airmozilla/issues/events{/number}","events_url":"https://api.github.com/repos/Nolski/airmozilla/events","assignees_url":"https://api.github.com/repos/Nolski/airmozilla/assignees{/user}","branches_url":"https://api.github.com/repos/Nolski/airmozilla/branches{/branch}","tags_url":"https://api.github.com/repos/Nolski/airmozilla/tags","blobs_url":"https://api.github.com/repos/Nolski/airmozilla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nolski/airmozilla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nolski/airmozilla/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nolski/airmozilla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nolski/airmozilla/statuses/{sha}","languages_url":"https://api.github.com/repos/Nolski/airmozilla/languages","stargazers_url":"https://api.github.com/repos/Nolski/airmozilla/stargazers","contributors_url":"https://api.github.com/repos/Nolski/airmozilla/contributors","subscribers_url":"https://api.github.com/repos/Nolski/airmozilla/subscribers","subscription_url":"https://api.github.com/repos/Nolski/airmozilla/subscription","commits_url":"https://api.github.com/repos/Nolski/airmozilla/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nolski/airmozilla/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nolski/airmozilla/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nolski/airmozilla/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nolski/airmozilla/contents/{+path}","compare_url":"https://api.github.com/repos/Nolski/airmozilla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nolski/airmozilla/merges","archive_url":"https://api.github.com/repos/Nolski/airmozilla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nolski/airmozilla/downloads","issues_url":"https://api.github.com/repos/Nolski/airmozilla/issues{/number}","pulls_url":"https://api.github.com/repos/Nolski/airmozilla/pulls{/number}","milestones_url":"https://api.github.com/repos/Nolski/airmozilla/milestones{/number}","notifications_url":"https://api.github.com/repos/Nolski/airmozilla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nolski/airmozilla/labels{/name}","releases_url":"https://api.github.com/repos/Nolski/airmozilla/releases{/id}","created_at":"2015-06-02T16:48:55Z","updated_at":"2015-06-02T16:48:57Z","pushed_at":"2015-07-13T20:09:23Z","git_url":"git://github.com/Nolski/airmozilla.git","ssh_url":"git@github.com:Nolski/airmozilla.git","clone_url":"https://github.com/Nolski/airmozilla.git","svn_url":"https://github.com/Nolski/airmozilla","homepage":"https://air.mozilla.org","size":9854,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"147e4462aa01d21e7fefae2ffa32afc8ddbb57b7","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":4588705,"name":"airmozilla","full_name":"mozilla/airmozilla","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/airmozilla","description":"AirMozilla is the video broadcasting site for the Mozilla project","fork":false,"url":"https://api.github.com/repos/mozilla/airmozilla","forks_url":"https://api.github.com/repos/mozilla/airmozilla/forks","keys_url":"https://api.github.com/repos/mozilla/airmozilla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/airmozilla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/airmozilla/teams","hooks_url":"https://api.github.com/repos/mozilla/airmozilla/hooks","issue_events_url":"https://api.github.com/repos/mozilla/airmozilla/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/airmozilla/events","assignees_url":"https://api.github.com/repos/mozilla/airmozilla/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/airmozilla/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/airmozilla/tags","blobs_url":"https://api.github.com/repos/mozilla/airmozilla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/airmozilla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/airmozilla/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/airmozilla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/airmozilla/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/airmozilla/languages","stargazers_url":"https://api.github.com/repos/mozilla/airmozilla/stargazers","contributors_url":"https://api.github.com/repos/mozilla/airmozilla/contributors","subscribers_url":"https://api.github.com/repos/mozilla/airmozilla/subscribers","subscription_url":"https://api.github.com/repos/mozilla/airmozilla/subscription","commits_url":"https://api.github.com/repos/mozilla/airmozilla/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/airmozilla/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/airmozilla/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/airmozilla/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/airmozilla/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/airmozilla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/airmozilla/merges","archive_url":"https://api.github.com/repos/mozilla/airmozilla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/airmozilla/downloads","issues_url":"https://api.github.com/repos/mozilla/airmozilla/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/airmozilla/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/airmozilla/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/airmozilla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/airmozilla/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/airmozilla/releases{/id}","created_at":"2012-06-07T18:19:43Z","updated_at":"2015-07-03T06:54:14Z","pushed_at":"2015-07-13T20:09:24Z","git_url":"git://github.com/mozilla/airmozilla.git","ssh_url":"git@github.com:mozilla/airmozilla.git","clone_url":"https://github.com/mozilla/airmozilla.git","svn_url":"https://github.com/mozilla/airmozilla","homepage":"https://air.mozilla.org","size":14652,"stargazers_count":63,"watchers_count":63,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":3,"forks":58,"open_issues":3,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/395"},"html":{"href":"https://github.com/mozilla/airmozilla/pull/395"},"issue":{"href":"https://api.github.com/repos/mozilla/airmozilla/issues/395"},"comments":{"href":"https://api.github.com/repos/mozilla/airmozilla/issues/395/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/395/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/395/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/airmozilla/statuses/2a8a9f57953151992f31450453436b3e29b51a14"}}}}