{"action":"created","comment":{"url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/comments/209466408","pull_request_review_id":145485501,"id":209466408,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTQ2NjQwOA==","diff_hunk":"@@ -1909,6 +1930,14 @@ def _track_creator(player, position=None, other_track=None):\n             track_obj[key] = value\n         return track_obj\n \n+    @staticmethod\n+    def _thumbnail(track):\n+        if \"youtube\" in track.uri:\n+            for v, k in track._info.items():","path":"redbot/cogs/audio/audio.py","position":86,"original_position":86,"commit_id":"f22a4c97bfb13a1a13bf827c57a8b4d35508b29b","original_commit_id":"f22a4c97bfb13a1a13bf827c57a8b4d35508b29b","user":{"login":"calebj","id":1110839,"node_id":"MDQ6VXNlcjExMTA4Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1110839?v=4","gravatar_id":"","url":"https://api.github.com/users/calebj","html_url":"https://github.com/calebj","followers_url":"https://api.github.com/users/calebj/followers","following_url":"https://api.github.com/users/calebj/following{/other_user}","gists_url":"https://api.github.com/users/calebj/gists{/gist_id}","starred_url":"https://api.github.com/users/calebj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebj/subscriptions","organizations_url":"https://api.github.com/users/calebj/orgs","repos_url":"https://api.github.com/users/calebj/repos","events_url":"https://api.github.com/users/calebj/events{/privacy}","received_events_url":"https://api.github.com/users/calebj/received_events","type":"User","site_admin":false},"body":"Why not\r\n```py\r\nif \"youtube\" in track.uri and \"identifier\" in track._info:\r\n    return \"https://img.youtube.com/vi/{}/mqdefault.jpg\".format(track._info[\"identifier\"])\r\n```\r\nor even\r\n```py\r\n    return \"https://img.youtube.com/vi/{identifier}/mqdefault.jpg\".format(**track._info)\r\n```\r\nThe `return None` is redundant behavior.\r\n\r\nThese are acceptable... but I still prefer changing the library instead.","created_at":"2018-08-12T20:10:59Z","updated_at":"2018-08-12T20:11:08Z","html_url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/1998#discussion_r209466408","pull_request_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/comments/209466408"},"html":{"href":"https://github.com/Cog-Creators/Red-DiscordBot/pull/1998#discussion_r209466408"},"pull_request":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998"}}},"pull_request":{"url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998","id":207713414,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NzEzNDE0","html_url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/1998","diff_url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/1998.diff","patch_url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/1998.patch","issue_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues/1998","number":1998,"state":"open","locked":false,"title":"[V3 Audio] Add thumbnail display with toggle","user":{"login":"aikaterna","id":20862007,"node_id":"MDQ6VXNlcjIwODYyMDA3","avatar_url":"https://avatars0.githubusercontent.com/u/20862007?v=4","gravatar_id":"","url":"https://api.github.com/users/aikaterna","html_url":"https://github.com/aikaterna","followers_url":"https://api.github.com/users/aikaterna/followers","following_url":"https://api.github.com/users/aikaterna/following{/other_user}","gists_url":"https://api.github.com/users/aikaterna/gists{/gist_id}","starred_url":"https://api.github.com/users/aikaterna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aikaterna/subscriptions","organizations_url":"https://api.github.com/users/aikaterna/orgs","repos_url":"https://api.github.com/users/aikaterna/repos","events_url":"https://api.github.com/users/aikaterna/events{/privacy}","received_events_url":"https://api.github.com/users/aikaterna/received_events","type":"User","site_admin":false},"body":"### Type\r\n\r\n- [ ] Bugfix\r\n- [x] Enhancement\r\n- [ ] New feature\r\n\r\n### Description of the changes\r\nAdds a toggle to display a thumbnail for YouTube tracks on notify messages, [p]now and [p]queue for the current song. Thanks to Bramble for the suggestion/request.","created_at":"2018-08-10T20:22:39Z","updated_at":"2018-08-12T20:11:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"473c77e5472ff3ecd19c303cdf4612de722d4ad3","assignee":{"login":"calebj","id":1110839,"node_id":"MDQ6VXNlcjExMTA4Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1110839?v=4","gravatar_id":"","url":"https://api.github.com/users/calebj","html_url":"https://github.com/calebj","followers_url":"https://api.github.com/users/calebj/followers","following_url":"https://api.github.com/users/calebj/following{/other_user}","gists_url":"https://api.github.com/users/calebj/gists{/gist_id}","starred_url":"https://api.github.com/users/calebj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebj/subscriptions","organizations_url":"https://api.github.com/users/calebj/orgs","repos_url":"https://api.github.com/users/calebj/repos","events_url":"https://api.github.com/users/calebj/events{/privacy}","received_events_url":"https://api.github.com/users/calebj/received_events","type":"User","site_admin":false},"assignees":[{"login":"calebj","id":1110839,"node_id":"MDQ6VXNlcjExMTA4Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1110839?v=4","gravatar_id":"","url":"https://api.github.com/users/calebj","html_url":"https://github.com/calebj","followers_url":"https://api.github.com/users/calebj/followers","following_url":"https://api.github.com/users/calebj/following{/other_user}","gists_url":"https://api.github.com/users/calebj/gists{/gist_id}","starred_url":"https://api.github.com/users/calebj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebj/subscriptions","organizations_url":"https://api.github.com/users/calebj/orgs","repos_url":"https://api.github.com/users/calebj/repos","events_url":"https://api.github.com/users/calebj/events{/privacy}","received_events_url":"https://api.github.com/users/calebj/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":593836458,"node_id":"MDU6TGFiZWw1OTM4MzY0NTg=","url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/labels/V3","name":"V3","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998/commits","review_comments_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998/comments","review_comment_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues/1998/comments","statuses_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/statuses/f22a4c97bfb13a1a13bf827c57a8b4d35508b29b","head":{"label":"aikaterna:patch-2","ref":"patch-2","sha":"f22a4c97bfb13a1a13bf827c57a8b4d35508b29b","user":{"login":"aikaterna","id":20862007,"node_id":"MDQ6VXNlcjIwODYyMDA3","avatar_url":"https://avatars0.githubusercontent.com/u/20862007?v=4","gravatar_id":"","url":"https://api.github.com/users/aikaterna","html_url":"https://github.com/aikaterna","followers_url":"https://api.github.com/users/aikaterna/followers","following_url":"https://api.github.com/users/aikaterna/following{/other_user}","gists_url":"https://api.github.com/users/aikaterna/gists{/gist_id}","starred_url":"https://api.github.com/users/aikaterna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aikaterna/subscriptions","organizations_url":"https://api.github.com/users/aikaterna/orgs","repos_url":"https://api.github.com/users/aikaterna/repos","events_url":"https://api.github.com/users/aikaterna/events{/privacy}","received_events_url":"https://api.github.com/users/aikaterna/received_events","type":"User","site_admin":false},"repo":{"id":115955833,"node_id":"MDEwOlJlcG9zaXRvcnkxMTU5NTU4MzM=","name":"Red-DiscordBot","full_name":"aikaterna/Red-DiscordBot","owner":{"login":"aikaterna","id":20862007,"node_id":"MDQ6VXNlcjIwODYyMDA3","avatar_url":"https://avatars0.githubusercontent.com/u/20862007?v=4","gravatar_id":"","url":"https://api.github.com/users/aikaterna","html_url":"https://github.com/aikaterna","followers_url":"https://api.github.com/users/aikaterna/followers","following_url":"https://api.github.com/users/aikaterna/following{/other_user}","gists_url":"https://api.github.com/users/aikaterna/gists{/gist_id}","starred_url":"https://api.github.com/users/aikaterna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aikaterna/subscriptions","organizations_url":"https://api.github.com/users/aikaterna/orgs","repos_url":"https://api.github.com/users/aikaterna/repos","events_url":"https://api.github.com/users/aikaterna/events{/privacy}","received_events_url":"https://api.github.com/users/aikaterna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aikaterna/Red-DiscordBot","description":"A multifunction Discord bot","fork":true,"url":"https://api.github.com/repos/aikaterna/Red-DiscordBot","forks_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/forks","keys_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/teams","hooks_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/hooks","issue_events_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/issues/events{/number}","events_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/events","assignees_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/assignees{/user}","branches_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/branches{/branch}","tags_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/tags","blobs_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/statuses/{sha}","languages_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/languages","stargazers_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/stargazers","contributors_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/contributors","subscribers_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/subscribers","subscription_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/subscription","commits_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/contents/{+path}","compare_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/merges","archive_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/downloads","issues_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/issues{/number}","pulls_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/pulls{/number}","milestones_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/milestones{/number}","notifications_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/labels{/name}","releases_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/releases{/id}","deployments_url":"https://api.github.com/repos/aikaterna/Red-DiscordBot/deployments","created_at":"2018-01-01T23:33:27Z","updated_at":"2018-03-18T18:27:58Z","pushed_at":"2018-08-11T22:28:49Z","git_url":"git://github.com/aikaterna/Red-DiscordBot.git","ssh_url":"git@github.com:aikaterna/Red-DiscordBot.git","clone_url":"https://github.com/aikaterna/Red-DiscordBot.git","svn_url":"https://github.com/aikaterna/Red-DiscordBot","homepage":null,"size":42172,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Cog-Creators:V3/develop","ref":"V3/develop","sha":"591ed50ac3e9b7d8ad55666a14ff6bf14740bf4f","user":{"login":"Cog-Creators","id":23690422,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNjkwNDIy","avatar_url":"https://avatars2.githubusercontent.com/u/23690422?v=4","gravatar_id":"","url":"https://api.github.com/users/Cog-Creators","html_url":"https://github.com/Cog-Creators","followers_url":"https://api.github.com/users/Cog-Creators/followers","following_url":"https://api.github.com/users/Cog-Creators/following{/other_user}","gists_url":"https://api.github.com/users/Cog-Creators/gists{/gist_id}","starred_url":"https://api.github.com/users/Cog-Creators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cog-Creators/subscriptions","organizations_url":"https://api.github.com/users/Cog-Creators/orgs","repos_url":"https://api.github.com/users/Cog-Creators/repos","events_url":"https://api.github.com/users/Cog-Creators/events{/privacy}","received_events_url":"https://api.github.com/users/Cog-Creators/received_events","type":"Organization","site_admin":false},"repo":{"id":48904888,"node_id":"MDEwOlJlcG9zaXRvcnk0ODkwNDg4OA==","name":"Red-DiscordBot","full_name":"Cog-Creators/Red-DiscordBot","owner":{"login":"Cog-Creators","id":23690422,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNjkwNDIy","avatar_url":"https://avatars2.githubusercontent.com/u/23690422?v=4","gravatar_id":"","url":"https://api.github.com/users/Cog-Creators","html_url":"https://github.com/Cog-Creators","followers_url":"https://api.github.com/users/Cog-Creators/followers","following_url":"https://api.github.com/users/Cog-Creators/following{/other_user}","gists_url":"https://api.github.com/users/Cog-Creators/gists{/gist_id}","starred_url":"https://api.github.com/users/Cog-Creators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cog-Creators/subscriptions","organizations_url":"https://api.github.com/users/Cog-Creators/orgs","repos_url":"https://api.github.com/users/Cog-Creators/repos","events_url":"https://api.github.com/users/Cog-Creators/events{/privacy}","received_events_url":"https://api.github.com/users/Cog-Creators/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cog-Creators/Red-DiscordBot","description":"A multifunction Discord bot","fork":false,"url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot","forks_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/forks","keys_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/teams","hooks_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/hooks","issue_events_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues/events{/number}","events_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/events","assignees_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/assignees{/user}","branches_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/branches{/branch}","tags_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/tags","blobs_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/statuses/{sha}","languages_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/languages","stargazers_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/stargazers","contributors_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/contributors","subscribers_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/subscribers","subscription_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/subscription","commits_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/contents/{+path}","compare_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/merges","archive_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/downloads","issues_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues{/number}","pulls_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls{/number}","milestones_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/milestones{/number}","notifications_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/labels{/name}","releases_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/releases{/id}","deployments_url":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/deployments","created_at":"2016-01-02T09:27:12Z","updated_at":"2018-08-12T16:45:20Z","pushed_at":"2018-08-12T09:21:01Z","git_url":"git://github.com/Cog-Creators/Red-DiscordBot.git","ssh_url":"git@github.com:Cog-Creators/Red-DiscordBot.git","clone_url":"https://github.com/Cog-Creators/Red-DiscordBot.git","svn_url":"https://github.com/Cog-Creators/Red-DiscordBot","homepage":null,"size":42112,"stargazers_count":987,"watchers_count":987,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":873,"mirror_url":null,"archived":false,"open_issues_count":79,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":873,"open_issues":79,"watchers":987,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998"},"html":{"href":"https://github.com/Cog-Creators/Red-DiscordBot/pull/1998"},"issue":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues/1998"},"comments":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/issues/1998/comments"},"review_comments":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998/comments"},"review_comment":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/pulls/1998/commits"},"statuses":{"href":"https://api.github.com/repos/Cog-Creators/Red-DiscordBot/statuses/f22a4c97bfb13a1a13bf827c57a8b4d35508b29b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"calebj"}}