{"action":"created","comment":{"url":"https://api.github.com/repos/boosterllc/video_parser/pulls/comments/22916647","id":22916647,"diff_hunk":"@@ -7,7 +7,13 @@ def initialize(url, protocol='https')\n       # This line handles URL like http://www.youtube.com/watch?v=HtAXSpBM8XI\n       @video_id = @url.query_param('v')\n       # This line handles URL like http://www.youtube.com/v/HtAXSpBM8XI\n-      @video_id ||= matched_data[:id] if matched_data = @url.match(/youtube.com\\/v\\/(?<id>[^?]*)/)\n+\n+      if @video_id.blank?\n+        matched_url_parts = @url.match(/youtube.com\\/v\\/(?<id>[^?]*)/)\n+        if matched_url_parts\n+          @video_id = matched_url_parts[:id]\n+      end","path":"lib/video_parser/vs_youtube.rb","position":10,"original_position":10,"commit_id":"4d17a00a7596b11e4595e7f8d8d58156f46e6076","original_commit_id":"4d17a00a7596b11e4595e7f8d8d58156f46e6076","user":{"login":"iqbalhasnan","id":794601,"avatar_url":"https://avatars.githubusercontent.com/u/794601?v=3","gravatar_id":"","url":"https://api.github.com/users/iqbalhasnan","html_url":"https://github.com/iqbalhasnan","followers_url":"https://api.github.com/users/iqbalhasnan/followers","following_url":"https://api.github.com/users/iqbalhasnan/following{/other_user}","gists_url":"https://api.github.com/users/iqbalhasnan/gists{/gist_id}","starred_url":"https://api.github.com/users/iqbalhasnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iqbalhasnan/subscriptions","organizations_url":"https://api.github.com/users/iqbalhasnan/orgs","repos_url":"https://api.github.com/users/iqbalhasnan/repos","events_url":"https://api.github.com/users/iqbalhasnan/events{/privacy}","received_events_url":"https://api.github.com/users/iqbalhasnan/received_events","type":"User","site_admin":false},"body":"@wsalim @josephgrossberg Welly, you missed the end block somewhere..","created_at":"2015-01-14T04:42:25Z","updated_at":"2015-01-14T04:42:25Z","html_url":"https://github.com/boosterllc/video_parser/pull/4#discussion_r22916647","pull_request_url":"https://api.github.com/repos/boosterllc/video_parser/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/boosterllc/video_parser/pulls/comments/22916647"},"html":{"href":"https://github.com/boosterllc/video_parser/pull/4#discussion_r22916647"},"pull_request":{"href":"https://api.github.com/repos/boosterllc/video_parser/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/boosterllc/video_parser/pulls/4","id":27261480,"html_url":"https://github.com/boosterllc/video_parser/pull/4","diff_url":"https://github.com/boosterllc/video_parser/pull/4.diff","patch_url":"https://github.com/boosterllc/video_parser/pull/4.patch","issue_url":"https://api.github.com/repos/boosterllc/video_parser/issues/4","number":4,"state":"closed","locked":false,"title":"BOOS-3494: Making it to be more readable","user":{"login":"wsalim","id":8980070,"avatar_url":"https://avatars.githubusercontent.com/u/8980070?v=3","gravatar_id":"","url":"https://api.github.com/users/wsalim","html_url":"https://github.com/wsalim","followers_url":"https://api.github.com/users/wsalim/followers","following_url":"https://api.github.com/users/wsalim/following{/other_user}","gists_url":"https://api.github.com/users/wsalim/gists{/gist_id}","starred_url":"https://api.github.com/users/wsalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsalim/subscriptions","organizations_url":"https://api.github.com/users/wsalim/orgs","repos_url":"https://api.github.com/users/wsalim/repos","events_url":"https://api.github.com/users/wsalim/events{/privacy}","received_events_url":"https://api.github.com/users/wsalim/received_events","type":"User","site_admin":false},"body":"@josephgrossberg , please kindly review.\r\n\r\nThis is to prevent saving wrong youtube URL and prevent stalling of Dashboard loading in backend app.","created_at":"2015-01-13T10:36:51Z","updated_at":"2015-01-14T04:42:25Z","closed_at":"2015-01-13T10:37:53Z","merged_at":"2015-01-13T10:37:53Z","merge_commit_sha":"ccc352a57c63c0098b89121d5a5ab6301ccc9ad8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/boosterllc/video_parser/pulls/4/commits","review_comments_url":"https://api.github.com/repos/boosterllc/video_parser/pulls/4/comments","review_comment_url":"https://api.github.com/repos/boosterllc/video_parser/pulls/comments/{number}","comments_url":"https://api.github.com/repos/boosterllc/video_parser/issues/4/comments","statuses_url":"https://api.github.com/repos/boosterllc/video_parser/statuses/4d17a00a7596b11e4595e7f8d8d58156f46e6076","head":{"label":"boosterllc:feature/BOOS-3494_unsupported_url","ref":"feature/BOOS-3494_unsupported_url","sha":"4d17a00a7596b11e4595e7f8d8d58156f46e6076","user":{"login":"boosterllc","id":5475012,"avatar_url":"https://avatars.githubusercontent.com/u/5475012?v=3","gravatar_id":"","url":"https://api.github.com/users/boosterllc","html_url":"https://github.com/boosterllc","followers_url":"https://api.github.com/users/boosterllc/followers","following_url":"https://api.github.com/users/boosterllc/following{/other_user}","gists_url":"https://api.github.com/users/boosterllc/gists{/gist_id}","starred_url":"https://api.github.com/users/boosterllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boosterllc/subscriptions","organizations_url":"https://api.github.com/users/boosterllc/orgs","repos_url":"https://api.github.com/users/boosterllc/repos","events_url":"https://api.github.com/users/boosterllc/events{/privacy}","received_events_url":"https://api.github.com/users/boosterllc/received_events","type":"Organization","site_admin":false},"repo":{"id":14911674,"name":"video_parser","full_name":"boosterllc/video_parser","owner":{"login":"boosterllc","id":5475012,"avatar_url":"https://avatars.githubusercontent.com/u/5475012?v=3","gravatar_id":"","url":"https://api.github.com/users/boosterllc","html_url":"https://github.com/boosterllc","followers_url":"https://api.github.com/users/boosterllc/followers","following_url":"https://api.github.com/users/boosterllc/following{/other_user}","gists_url":"https://api.github.com/users/boosterllc/gists{/gist_id}","starred_url":"https://api.github.com/users/boosterllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boosterllc/subscriptions","organizations_url":"https://api.github.com/users/boosterllc/orgs","repos_url":"https://api.github.com/users/boosterllc/repos","events_url":"https://api.github.com/users/boosterllc/events{/privacy}","received_events_url":"https://api.github.com/users/boosterllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boosterllc/video_parser","description":"","fork":false,"url":"https://api.github.com/repos/boosterllc/video_parser","forks_url":"https://api.github.com/repos/boosterllc/video_parser/forks","keys_url":"https://api.github.com/repos/boosterllc/video_parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boosterllc/video_parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boosterllc/video_parser/teams","hooks_url":"https://api.github.com/repos/boosterllc/video_parser/hooks","issue_events_url":"https://api.github.com/repos/boosterllc/video_parser/issues/events{/number}","events_url":"https://api.github.com/repos/boosterllc/video_parser/events","assignees_url":"https://api.github.com/repos/boosterllc/video_parser/assignees{/user}","branches_url":"https://api.github.com/repos/boosterllc/video_parser/branches{/branch}","tags_url":"https://api.github.com/repos/boosterllc/video_parser/tags","blobs_url":"https://api.github.com/repos/boosterllc/video_parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boosterllc/video_parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boosterllc/video_parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/boosterllc/video_parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boosterllc/video_parser/statuses/{sha}","languages_url":"https://api.github.com/repos/boosterllc/video_parser/languages","stargazers_url":"https://api.github.com/repos/boosterllc/video_parser/stargazers","contributors_url":"https://api.github.com/repos/boosterllc/video_parser/contributors","subscribers_url":"https://api.github.com/repos/boosterllc/video_parser/subscribers","subscription_url":"https://api.github.com/repos/boosterllc/video_parser/subscription","commits_url":"https://api.github.com/repos/boosterllc/video_parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/boosterllc/video_parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/boosterllc/video_parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/boosterllc/video_parser/issues/comments/{number}","contents_url":"https://api.github.com/repos/boosterllc/video_parser/contents/{+path}","compare_url":"https://api.github.com/repos/boosterllc/video_parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boosterllc/video_parser/merges","archive_url":"https://api.github.com/repos/boosterllc/video_parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boosterllc/video_parser/downloads","issues_url":"https://api.github.com/repos/boosterllc/video_parser/issues{/number}","pulls_url":"https://api.github.com/repos/boosterllc/video_parser/pulls{/number}","milestones_url":"https://api.github.com/repos/boosterllc/video_parser/milestones{/number}","notifications_url":"https://api.github.com/repos/boosterllc/video_parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boosterllc/video_parser/labels{/name}","releases_url":"https://api.github.com/repos/boosterllc/video_parser/releases{/id}","created_at":"2013-12-04T02:12:11Z","updated_at":"2015-01-13T10:37:54Z","pushed_at":"2015-01-13T10:39:32Z","git_url":"git://github.com/boosterllc/video_parser.git","ssh_url":"git@github.com:boosterllc/video_parser.git","clone_url":"https://github.com/boosterllc/video_parser.git","svn_url":"https://github.com/boosterllc/video_parser","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"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":"boosterllc:master","ref":"master","sha":"9c51ecb829c2845178495f2a4dddf0d2f8dc306b","user":{"login":"boosterllc","id":5475012,"avatar_url":"https://avatars.githubusercontent.com/u/5475012?v=3","gravatar_id":"","url":"https://api.github.com/users/boosterllc","html_url":"https://github.com/boosterllc","followers_url":"https://api.github.com/users/boosterllc/followers","following_url":"https://api.github.com/users/boosterllc/following{/other_user}","gists_url":"https://api.github.com/users/boosterllc/gists{/gist_id}","starred_url":"https://api.github.com/users/boosterllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boosterllc/subscriptions","organizations_url":"https://api.github.com/users/boosterllc/orgs","repos_url":"https://api.github.com/users/boosterllc/repos","events_url":"https://api.github.com/users/boosterllc/events{/privacy}","received_events_url":"https://api.github.com/users/boosterllc/received_events","type":"Organization","site_admin":false},"repo":{"id":14911674,"name":"video_parser","full_name":"boosterllc/video_parser","owner":{"login":"boosterllc","id":5475012,"avatar_url":"https://avatars.githubusercontent.com/u/5475012?v=3","gravatar_id":"","url":"https://api.github.com/users/boosterllc","html_url":"https://github.com/boosterllc","followers_url":"https://api.github.com/users/boosterllc/followers","following_url":"https://api.github.com/users/boosterllc/following{/other_user}","gists_url":"https://api.github.com/users/boosterllc/gists{/gist_id}","starred_url":"https://api.github.com/users/boosterllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boosterllc/subscriptions","organizations_url":"https://api.github.com/users/boosterllc/orgs","repos_url":"https://api.github.com/users/boosterllc/repos","events_url":"https://api.github.com/users/boosterllc/events{/privacy}","received_events_url":"https://api.github.com/users/boosterllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boosterllc/video_parser","description":"","fork":false,"url":"https://api.github.com/repos/boosterllc/video_parser","forks_url":"https://api.github.com/repos/boosterllc/video_parser/forks","keys_url":"https://api.github.com/repos/boosterllc/video_parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boosterllc/video_parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boosterllc/video_parser/teams","hooks_url":"https://api.github.com/repos/boosterllc/video_parser/hooks","issue_events_url":"https://api.github.com/repos/boosterllc/video_parser/issues/events{/number}","events_url":"https://api.github.com/repos/boosterllc/video_parser/events","assignees_url":"https://api.github.com/repos/boosterllc/video_parser/assignees{/user}","branches_url":"https://api.github.com/repos/boosterllc/video_parser/branches{/branch}","tags_url":"https://api.github.com/repos/boosterllc/video_parser/tags","blobs_url":"https://api.github.com/repos/boosterllc/video_parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boosterllc/video_parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boosterllc/video_parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/boosterllc/video_parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boosterllc/video_parser/statuses/{sha}","languages_url":"https://api.github.com/repos/boosterllc/video_parser/languages","stargazers_url":"https://api.github.com/repos/boosterllc/video_parser/stargazers","contributors_url":"https://api.github.com/repos/boosterllc/video_parser/contributors","subscribers_url":"https://api.github.com/repos/boosterllc/video_parser/subscribers","subscription_url":"https://api.github.com/repos/boosterllc/video_parser/subscription","commits_url":"https://api.github.com/repos/boosterllc/video_parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/boosterllc/video_parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/boosterllc/video_parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/boosterllc/video_parser/issues/comments/{number}","contents_url":"https://api.github.com/repos/boosterllc/video_parser/contents/{+path}","compare_url":"https://api.github.com/repos/boosterllc/video_parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boosterllc/video_parser/merges","archive_url":"https://api.github.com/repos/boosterllc/video_parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boosterllc/video_parser/downloads","issues_url":"https://api.github.com/repos/boosterllc/video_parser/issues{/number}","pulls_url":"https://api.github.com/repos/boosterllc/video_parser/pulls{/number}","milestones_url":"https://api.github.com/repos/boosterllc/video_parser/milestones{/number}","notifications_url":"https://api.github.com/repos/boosterllc/video_parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boosterllc/video_parser/labels{/name}","releases_url":"https://api.github.com/repos/boosterllc/video_parser/releases{/id}","created_at":"2013-12-04T02:12:11Z","updated_at":"2015-01-13T10:37:54Z","pushed_at":"2015-01-13T10:39:32Z","git_url":"git://github.com/boosterllc/video_parser.git","ssh_url":"git@github.com:boosterllc/video_parser.git","clone_url":"https://github.com/boosterllc/video_parser.git","svn_url":"https://github.com/boosterllc/video_parser","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/boosterllc/video_parser/pulls/4"},"html":{"href":"https://github.com/boosterllc/video_parser/pull/4"},"issue":{"href":"https://api.github.com/repos/boosterllc/video_parser/issues/4"},"comments":{"href":"https://api.github.com/repos/boosterllc/video_parser/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/boosterllc/video_parser/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/boosterllc/video_parser/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/boosterllc/video_parser/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/boosterllc/video_parser/statuses/4d17a00a7596b11e4595e7f8d8d58156f46e6076"}}}}