{"action":"created","issue":{"url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/2","labels_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/2/comments","events_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/2/events","html_url":"https://github.com/hubot-scripts/hubot-youtube/pull/2","id":67799135,"number":2,"title":"Preparing @dualmoon's result length change for a pull request","user":{"login":"thomasrussellmurphy","id":2342884,"avatar_url":"https://avatars.githubusercontent.com/u/2342884?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasrussellmurphy","html_url":"https://github.com/thomasrussellmurphy","followers_url":"https://api.github.com/users/thomasrussellmurphy/followers","following_url":"https://api.github.com/users/thomasrussellmurphy/following{/other_user}","gists_url":"https://api.github.com/users/thomasrussellmurphy/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasrussellmurphy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasrussellmurphy/subscriptions","organizations_url":"https://api.github.com/users/thomasrussellmurphy/orgs","repos_url":"https://api.github.com/users/thomasrussellmurphy/repos","events_url":"https://api.github.com/users/thomasrussellmurphy/events{/privacy}","received_events_url":"https://api.github.com/users/thomasrussellmurphy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-11T15:27:28Z","updated_at":"2015-05-01T20:04:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/2","html_url":"https://github.com/hubot-scripts/hubot-youtube/pull/2","diff_url":"https://github.com/hubot-scripts/hubot-youtube/pull/2.diff","patch_url":"https://github.com/hubot-scripts/hubot-youtube/pull/2.patch"},"body":"@dualmoon suggested in their own fork of hubot-youtube to only search for the most relevant result. This would change the behavior to be fully deterministic and only return the top YouTube search result rather than a random result from the top 15."},"comment":{"url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/comments/98221152","html_url":"https://github.com/hubot-scripts/hubot-youtube/pull/2#issuecomment-98221152","issue_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/2","id":98221152,"user":{"login":"Emile-Filteau","id":1054341,"avatar_url":"https://avatars.githubusercontent.com/u/1054341?v=3","gravatar_id":"","url":"https://api.github.com/users/Emile-Filteau","html_url":"https://github.com/Emile-Filteau","followers_url":"https://api.github.com/users/Emile-Filteau/followers","following_url":"https://api.github.com/users/Emile-Filteau/following{/other_user}","gists_url":"https://api.github.com/users/Emile-Filteau/gists{/gist_id}","starred_url":"https://api.github.com/users/Emile-Filteau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emile-Filteau/subscriptions","organizations_url":"https://api.github.com/users/Emile-Filteau/orgs","repos_url":"https://api.github.com/users/Emile-Filteau/repos","events_url":"https://api.github.com/users/Emile-Filteau/events{/privacy}","received_events_url":"https://api.github.com/users/Emile-Filteau/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T20:04:34Z","updated_at":"2015-05-01T20:04:34Z","body":"Since April 20 the Youtube API V2 is deprecated. When using the deprecated API, the most relevant result is always this video : \r\nhttp://www.youtube.com/watch?v=UKY3scPIMd8&feature=youtube_gdata\r\n\r\nI managed to make a little work around by putting max-results to 2 and replacing \r\n```\r\nvideo  = msg.random videos\r\n```\r\n\r\nby\r\n```\r\nvideo  = videos[1]\r\n```"}}