{"action":"created","comment":{"url":"https://api.github.com/repos/fent/node-ytdl-core/pulls/comments/65323613","id":65323613,"diff_hunk":"@@ -46,7 +47,20 @@ module.exports = function getInfo(link, options, callback) {\n \n         // Get description from #eow-description\n         var description = util.getVideoDescription(body);\n-\n+        var related = '';\n+        var ids = '';\n+        if( body.search(/RELATED_PLAYER_ARGS/) ) {\n+          related = body.match(/RELATED_PLAYER_ARGS['\\s\\t\\n]*:[\\s\\t\\n]*{[\\s\\t\\n\"]*rvs\":\"([^}]+)/)[1];","path":"lib/info.js","position":16,"original_position":16,"commit_id":"d8f48737f7d5f710b591017b3457b4acc740b2f4","original_commit_id":"d8f48737f7d5f710b591017b3457b4acc740b2f4","user":{"login":"fent","id":933490,"avatar_url":"https://avatars.githubusercontent.com/u/933490?v=3","gravatar_id":"","url":"https://api.github.com/users/fent","html_url":"https://github.com/fent","followers_url":"https://api.github.com/users/fent/followers","following_url":"https://api.github.com/users/fent/following{/other_user}","gists_url":"https://api.github.com/users/fent/gists{/gist_id}","starred_url":"https://api.github.com/users/fent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fent/subscriptions","organizations_url":"https://api.github.com/users/fent/orgs","repos_url":"https://api.github.com/users/fent/repos","events_url":"https://api.github.com/users/fent/events{/privacy}","received_events_url":"https://api.github.com/users/fent/received_events","type":"User","site_admin":false},"body":"Tests fail from this line, make sure to check if there is a match.\r\n\r\nI'm also not a big fan of this regexp, for one, singlequotes always surround `RELATED_PLAYER_ARGS` right? And `\\s` also matches `\\t` and `\\n`. `rvs` is also always surrounde by doublequotes, it looks like.","created_at":"2016-06-01T08:48:17Z","updated_at":"2016-06-01T08:48:17Z","html_url":"https://github.com/fent/node-ytdl-core/pull/74#discussion_r65323613","pull_request_url":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/fent/node-ytdl-core/pulls/comments/65323613"},"html":{"href":"https://github.com/fent/node-ytdl-core/pull/74#discussion_r65323613"},"pull_request":{"href":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74","id":72127234,"html_url":"https://github.com/fent/node-ytdl-core/pull/74","diff_url":"https://github.com/fent/node-ytdl-core/pull/74.diff","patch_url":"https://github.com/fent/node-ytdl-core/pull/74.patch","issue_url":"https://api.github.com/repos/fent/node-ytdl-core/issues/74","number":74,"state":"open","locked":false,"title":"Added support to retrieve the YouTube's suggested videos to the info object","user":{"login":"paixaop","id":327006,"avatar_url":"https://avatars.githubusercontent.com/u/327006?v=3","gravatar_id":"","url":"https://api.github.com/users/paixaop","html_url":"https://github.com/paixaop","followers_url":"https://api.github.com/users/paixaop/followers","following_url":"https://api.github.com/users/paixaop/following{/other_user}","gists_url":"https://api.github.com/users/paixaop/gists{/gist_id}","starred_url":"https://api.github.com/users/paixaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paixaop/subscriptions","organizations_url":"https://api.github.com/users/paixaop/orgs","repos_url":"https://api.github.com/users/paixaop/repos","events_url":"https://api.github.com/users/paixaop/events{/privacy}","received_events_url":"https://api.github.com/users/paixaop/received_events","type":"User","site_admin":false},"body":"Add the suggested videos to the info object. This allows users to automatically download related/suggested videos.\r\n","created_at":"2016-06-01T06:06:48Z","updated_at":"2016-06-01T08:48:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb0e8420bdec23818017dd851f4f2c04164922d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74/commits","review_comments_url":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74/comments","review_comment_url":"https://api.github.com/repos/fent/node-ytdl-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fent/node-ytdl-core/issues/74/comments","statuses_url":"https://api.github.com/repos/fent/node-ytdl-core/statuses/d8f48737f7d5f710b591017b3457b4acc740b2f4","head":{"label":"paixaop:master","ref":"master","sha":"d8f48737f7d5f710b591017b3457b4acc740b2f4","user":{"login":"paixaop","id":327006,"avatar_url":"https://avatars.githubusercontent.com/u/327006?v=3","gravatar_id":"","url":"https://api.github.com/users/paixaop","html_url":"https://github.com/paixaop","followers_url":"https://api.github.com/users/paixaop/followers","following_url":"https://api.github.com/users/paixaop/following{/other_user}","gists_url":"https://api.github.com/users/paixaop/gists{/gist_id}","starred_url":"https://api.github.com/users/paixaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paixaop/subscriptions","organizations_url":"https://api.github.com/users/paixaop/orgs","repos_url":"https://api.github.com/users/paixaop/repos","events_url":"https://api.github.com/users/paixaop/events{/privacy}","received_events_url":"https://api.github.com/users/paixaop/received_events","type":"User","site_admin":false},"repo":{"id":60149755,"name":"node-ytdl-core","full_name":"paixaop/node-ytdl-core","owner":{"login":"paixaop","id":327006,"avatar_url":"https://avatars.githubusercontent.com/u/327006?v=3","gravatar_id":"","url":"https://api.github.com/users/paixaop","html_url":"https://github.com/paixaop","followers_url":"https://api.github.com/users/paixaop/followers","following_url":"https://api.github.com/users/paixaop/following{/other_user}","gists_url":"https://api.github.com/users/paixaop/gists{/gist_id}","starred_url":"https://api.github.com/users/paixaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paixaop/subscriptions","organizations_url":"https://api.github.com/users/paixaop/orgs","repos_url":"https://api.github.com/users/paixaop/repos","events_url":"https://api.github.com/users/paixaop/events{/privacy}","received_events_url":"https://api.github.com/users/paixaop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paixaop/node-ytdl-core","description":"Youtube video downloader in javascript.","fork":true,"url":"https://api.github.com/repos/paixaop/node-ytdl-core","forks_url":"https://api.github.com/repos/paixaop/node-ytdl-core/forks","keys_url":"https://api.github.com/repos/paixaop/node-ytdl-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paixaop/node-ytdl-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paixaop/node-ytdl-core/teams","hooks_url":"https://api.github.com/repos/paixaop/node-ytdl-core/hooks","issue_events_url":"https://api.github.com/repos/paixaop/node-ytdl-core/issues/events{/number}","events_url":"https://api.github.com/repos/paixaop/node-ytdl-core/events","assignees_url":"https://api.github.com/repos/paixaop/node-ytdl-core/assignees{/user}","branches_url":"https://api.github.com/repos/paixaop/node-ytdl-core/branches{/branch}","tags_url":"https://api.github.com/repos/paixaop/node-ytdl-core/tags","blobs_url":"https://api.github.com/repos/paixaop/node-ytdl-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paixaop/node-ytdl-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paixaop/node-ytdl-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/paixaop/node-ytdl-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paixaop/node-ytdl-core/statuses/{sha}","languages_url":"https://api.github.com/repos/paixaop/node-ytdl-core/languages","stargazers_url":"https://api.github.com/repos/paixaop/node-ytdl-core/stargazers","contributors_url":"https://api.github.com/repos/paixaop/node-ytdl-core/contributors","subscribers_url":"https://api.github.com/repos/paixaop/node-ytdl-core/subscribers","subscription_url":"https://api.github.com/repos/paixaop/node-ytdl-core/subscription","commits_url":"https://api.github.com/repos/paixaop/node-ytdl-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/paixaop/node-ytdl-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/paixaop/node-ytdl-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/paixaop/node-ytdl-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/paixaop/node-ytdl-core/contents/{+path}","compare_url":"https://api.github.com/repos/paixaop/node-ytdl-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paixaop/node-ytdl-core/merges","archive_url":"https://api.github.com/repos/paixaop/node-ytdl-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paixaop/node-ytdl-core/downloads","issues_url":"https://api.github.com/repos/paixaop/node-ytdl-core/issues{/number}","pulls_url":"https://api.github.com/repos/paixaop/node-ytdl-core/pulls{/number}","milestones_url":"https://api.github.com/repos/paixaop/node-ytdl-core/milestones{/number}","notifications_url":"https://api.github.com/repos/paixaop/node-ytdl-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paixaop/node-ytdl-core/labels{/name}","releases_url":"https://api.github.com/repos/paixaop/node-ytdl-core/releases{/id}","deployments_url":"https://api.github.com/repos/paixaop/node-ytdl-core/deployments","created_at":"2016-06-01T06:03:28Z","updated_at":"2016-06-01T06:03:29Z","pushed_at":"2016-06-01T06:05:15Z","git_url":"git://github.com/paixaop/node-ytdl-core.git","ssh_url":"git@github.com:paixaop/node-ytdl-core.git","clone_url":"https://github.com/paixaop/node-ytdl-core.git","svn_url":"https://github.com/paixaop/node-ytdl-core","homepage":null,"size":5694,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"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":"fent:master","ref":"master","sha":"24059c11a209d43f5aa3be9adeb3a297cf367acd","user":{"login":"fent","id":933490,"avatar_url":"https://avatars.githubusercontent.com/u/933490?v=3","gravatar_id":"","url":"https://api.github.com/users/fent","html_url":"https://github.com/fent","followers_url":"https://api.github.com/users/fent/followers","following_url":"https://api.github.com/users/fent/following{/other_user}","gists_url":"https://api.github.com/users/fent/gists{/gist_id}","starred_url":"https://api.github.com/users/fent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fent/subscriptions","organizations_url":"https://api.github.com/users/fent/orgs","repos_url":"https://api.github.com/users/fent/repos","events_url":"https://api.github.com/users/fent/events{/privacy}","received_events_url":"https://api.github.com/users/fent/received_events","type":"User","site_admin":false},"repo":{"id":21333232,"name":"node-ytdl-core","full_name":"fent/node-ytdl-core","owner":{"login":"fent","id":933490,"avatar_url":"https://avatars.githubusercontent.com/u/933490?v=3","gravatar_id":"","url":"https://api.github.com/users/fent","html_url":"https://github.com/fent","followers_url":"https://api.github.com/users/fent/followers","following_url":"https://api.github.com/users/fent/following{/other_user}","gists_url":"https://api.github.com/users/fent/gists{/gist_id}","starred_url":"https://api.github.com/users/fent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fent/subscriptions","organizations_url":"https://api.github.com/users/fent/orgs","repos_url":"https://api.github.com/users/fent/repos","events_url":"https://api.github.com/users/fent/events{/privacy}","received_events_url":"https://api.github.com/users/fent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fent/node-ytdl-core","description":"Youtube video downloader in javascript.","fork":false,"url":"https://api.github.com/repos/fent/node-ytdl-core","forks_url":"https://api.github.com/repos/fent/node-ytdl-core/forks","keys_url":"https://api.github.com/repos/fent/node-ytdl-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fent/node-ytdl-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fent/node-ytdl-core/teams","hooks_url":"https://api.github.com/repos/fent/node-ytdl-core/hooks","issue_events_url":"https://api.github.com/repos/fent/node-ytdl-core/issues/events{/number}","events_url":"https://api.github.com/repos/fent/node-ytdl-core/events","assignees_url":"https://api.github.com/repos/fent/node-ytdl-core/assignees{/user}","branches_url":"https://api.github.com/repos/fent/node-ytdl-core/branches{/branch}","tags_url":"https://api.github.com/repos/fent/node-ytdl-core/tags","blobs_url":"https://api.github.com/repos/fent/node-ytdl-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fent/node-ytdl-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fent/node-ytdl-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fent/node-ytdl-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fent/node-ytdl-core/statuses/{sha}","languages_url":"https://api.github.com/repos/fent/node-ytdl-core/languages","stargazers_url":"https://api.github.com/repos/fent/node-ytdl-core/stargazers","contributors_url":"https://api.github.com/repos/fent/node-ytdl-core/contributors","subscribers_url":"https://api.github.com/repos/fent/node-ytdl-core/subscribers","subscription_url":"https://api.github.com/repos/fent/node-ytdl-core/subscription","commits_url":"https://api.github.com/repos/fent/node-ytdl-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fent/node-ytdl-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fent/node-ytdl-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fent/node-ytdl-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fent/node-ytdl-core/contents/{+path}","compare_url":"https://api.github.com/repos/fent/node-ytdl-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fent/node-ytdl-core/merges","archive_url":"https://api.github.com/repos/fent/node-ytdl-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fent/node-ytdl-core/downloads","issues_url":"https://api.github.com/repos/fent/node-ytdl-core/issues{/number}","pulls_url":"https://api.github.com/repos/fent/node-ytdl-core/pulls{/number}","milestones_url":"https://api.github.com/repos/fent/node-ytdl-core/milestones{/number}","notifications_url":"https://api.github.com/repos/fent/node-ytdl-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fent/node-ytdl-core/labels{/name}","releases_url":"https://api.github.com/repos/fent/node-ytdl-core/releases{/id}","deployments_url":"https://api.github.com/repos/fent/node-ytdl-core/deployments","created_at":"2014-06-29T22:06:35Z","updated_at":"2016-05-31T00:08:28Z","pushed_at":"2016-06-01T06:06:48Z","git_url":"git://github.com/fent/node-ytdl-core.git","ssh_url":"git@github.com:fent/node-ytdl-core.git","clone_url":"https://github.com/fent/node-ytdl-core.git","svn_url":"https://github.com/fent/node-ytdl-core","homepage":null,"size":5694,"stargazers_count":222,"watchers_count":222,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":4,"forks":38,"open_issues":4,"watchers":222,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74"},"html":{"href":"https://github.com/fent/node-ytdl-core/pull/74"},"issue":{"href":"https://api.github.com/repos/fent/node-ytdl-core/issues/74"},"comments":{"href":"https://api.github.com/repos/fent/node-ytdl-core/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/fent/node-ytdl-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fent/node-ytdl-core/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/fent/node-ytdl-core/statuses/d8f48737f7d5f710b591017b3457b4acc740b2f4"}}}}
{"actor":{"display_login":"fent"}}