{"action":"created","comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/84604349","pull_request_review_id":5371846,"id":84604349,"diff_hunk":"@@ -0,0 +1,94 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+import re\n+\n+from .common import InfoExtractor\n+from ..compat import compat_urlparse\n+\n+\n+class JamendoIE(InfoExtractor):\n+    _VALID_URL = r'https?://(?:www\\.)?jamendo\\.com/track/(?P<id>[0-9]+)/(?P<display_id>[\\w-]+)'\n+    _TEST = {\n+        'url': 'https://www.jamendo.com/track/196219/stories-from-emona-i',\n+        'md5': '697564d8b10c60af35edda4fafb3fbfd',\n+        'info_dict': {\n+            'id': '196219',\n+            'display_id': 'stories-from-emona-i',\n+            'ext': 'mp3',\n+            'title': 'Stories from Emona I',\n+            'thumbnail': 're:^https?://.*\\.jpg',\n+            'url': 'https://mp3d.jamendo.com/download/track/196219/mp32'\n+        }\n+    }\n+\n+    def _real_extract(self, url):\n+        url_data = self._VALID_URL_RE.match(url)\n+        track_id = url_data.group('id')\n+        webpage = self._download_webpage(url, track_id)\n+\n+        thumbnail = self._html_search_regex(r'<meta itemprop=\"image\" content=\"(.+)\">', webpage, 'thumbnail', fatal=False)\n+        title = self._html_search_regex('<meta itemprop=\"name\" content=\"(.+)\">', webpage, 'title')\n+\n+        return {\n+            'id': track_id,\n+            'display_id': url_data.group('display_id'),\n+            'ext': 'mp3',\n+            'title': title,\n+            'thumbnail': thumbnail,\n+            'url': 'https://mp3d.jamendo.com/download/track/%s/mp32' % track_id","path":"youtube_dl/extractor/jamendo.py","position":null,"original_position":39,"commit_id":"a57de1577eb7bf48ee1c886bddc3c609eed85609","original_commit_id":"42a494d5e1663c2160ae6f8b31c167d9ed29a643","user":{"login":"dstftw","id":1908898,"avatar_url":"https://avatars.githubusercontent.com/u/1908898?v=3","gravatar_id":"","url":"https://api.github.com/users/dstftw","html_url":"https://github.com/dstftw","followers_url":"https://api.github.com/users/dstftw/followers","following_url":"https://api.github.com/users/dstftw/following{/other_user}","gists_url":"https://api.github.com/users/dstftw/gists{/gist_id}","starred_url":"https://api.github.com/users/dstftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstftw/subscriptions","organizations_url":"https://api.github.com/users/dstftw/orgs","repos_url":"https://api.github.com/users/dstftw/repos","events_url":"https://api.github.com/users/dstftw/events{/privacy}","received_events_url":"https://api.github.com/users/dstftw/received_events","type":"User","site_admin":false},"body":"I've already pointed out: API URLs should be used.","created_at":"2016-10-23T20:47:57Z","updated_at":"2016-10-23T20:47:57Z","html_url":"https://github.com/rg3/youtube-dl/pull/10934#discussion_r84604349","pull_request_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934","_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/84604349"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/10934#discussion_r84604349"},"pull_request":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934"}}},"pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934","id":89506824,"html_url":"https://github.com/rg3/youtube-dl/pull/10934","diff_url":"https://github.com/rg3/youtube-dl/pull/10934.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/10934.patch","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/10934","number":10934,"state":"open","locked":false,"title":"[jamendo] Add new extractor","user":{"login":"Thor77","id":4989736,"avatar_url":"https://avatars.githubusercontent.com/u/4989736?v=3","gravatar_id":"","url":"https://api.github.com/users/Thor77","html_url":"https://github.com/Thor77","followers_url":"https://api.github.com/users/Thor77/followers","following_url":"https://api.github.com/users/Thor77/following{/other_user}","gists_url":"https://api.github.com/users/Thor77/gists{/gist_id}","starred_url":"https://api.github.com/users/Thor77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thor77/subscriptions","organizations_url":"https://api.github.com/users/Thor77/orgs","repos_url":"https://api.github.com/users/Thor77/repos","events_url":"https://api.github.com/users/Thor77/events{/privacy}","received_events_url":"https://api.github.com/users/Thor77/received_events","type":"User","site_admin":false},"body":"### Before submitting a *pull request* make sure you have:\r\n- [X] At least skimmed through [adding new extractor tutorial](https://github.com/rg3/youtube-dl#adding-support-for-a-new-site) and [youtube-dl coding conventions](https://github.com/rg3/youtube-dl#youtube-dl-coding-conventions) sections\r\n- [X] [Searched](https://github.com/rg3/youtube-dl/search?q=is%3Apr&type=Issues) the bugtracker for similar pull requests\r\n\r\n### In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under [Unlicense](http://unlicense.org/). Check one of the following options:\r\n- [X] I am the original author of this code and I am willing to release it under [Unlicense](http://unlicense.org/)\r\n\r\n### What is the purpose of your *pull request*?\r\n- [X] New extractor\r\n\r\n---\r\n\r\n### Description of your *pull request* and other information\r\n\r\nAdding an extractor for [Jamendo](https://www.jamendo.com/)\r\n\r\nFix #10132 \r\n\r\n","created_at":"2016-10-15T21:15:16Z","updated_at":"2016-10-23T20:47:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28234022e49b7b39f5f91cc3e1017902d0560eee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934/commits","review_comments_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934/comments","review_comment_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/10934/comments","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/a57de1577eb7bf48ee1c886bddc3c609eed85609","head":{"label":"Thor77:jamendo","ref":"jamendo","sha":"a57de1577eb7bf48ee1c886bddc3c609eed85609","user":{"login":"Thor77","id":4989736,"avatar_url":"https://avatars.githubusercontent.com/u/4989736?v=3","gravatar_id":"","url":"https://api.github.com/users/Thor77","html_url":"https://github.com/Thor77","followers_url":"https://api.github.com/users/Thor77/followers","following_url":"https://api.github.com/users/Thor77/following{/other_user}","gists_url":"https://api.github.com/users/Thor77/gists{/gist_id}","starred_url":"https://api.github.com/users/Thor77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thor77/subscriptions","organizations_url":"https://api.github.com/users/Thor77/orgs","repos_url":"https://api.github.com/users/Thor77/repos","events_url":"https://api.github.com/users/Thor77/events{/privacy}","received_events_url":"https://api.github.com/users/Thor77/received_events","type":"User","site_admin":false},"repo":{"id":58218271,"name":"youtube-dl","full_name":"Thor77/youtube-dl","owner":{"login":"Thor77","id":4989736,"avatar_url":"https://avatars.githubusercontent.com/u/4989736?v=3","gravatar_id":"","url":"https://api.github.com/users/Thor77","html_url":"https://github.com/Thor77","followers_url":"https://api.github.com/users/Thor77/followers","following_url":"https://api.github.com/users/Thor77/following{/other_user}","gists_url":"https://api.github.com/users/Thor77/gists{/gist_id}","starred_url":"https://api.github.com/users/Thor77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thor77/subscriptions","organizations_url":"https://api.github.com/users/Thor77/orgs","repos_url":"https://api.github.com/users/Thor77/repos","events_url":"https://api.github.com/users/Thor77/events{/privacy}","received_events_url":"https://api.github.com/users/Thor77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Thor77/youtube-dl","description":"Small command-line program to download videos from YouTube.com and other video sites","fork":true,"url":"https://api.github.com/repos/Thor77/youtube-dl","forks_url":"https://api.github.com/repos/Thor77/youtube-dl/forks","keys_url":"https://api.github.com/repos/Thor77/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Thor77/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Thor77/youtube-dl/teams","hooks_url":"https://api.github.com/repos/Thor77/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/Thor77/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/Thor77/youtube-dl/events","assignees_url":"https://api.github.com/repos/Thor77/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/Thor77/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/Thor77/youtube-dl/tags","blobs_url":"https://api.github.com/repos/Thor77/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Thor77/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Thor77/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Thor77/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Thor77/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/Thor77/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/Thor77/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/Thor77/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/Thor77/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/Thor77/youtube-dl/subscription","commits_url":"https://api.github.com/repos/Thor77/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Thor77/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Thor77/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Thor77/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Thor77/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/Thor77/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Thor77/youtube-dl/merges","archive_url":"https://api.github.com/repos/Thor77/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Thor77/youtube-dl/downloads","issues_url":"https://api.github.com/repos/Thor77/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/Thor77/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/Thor77/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/Thor77/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Thor77/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/Thor77/youtube-dl/releases{/id}","deployments_url":"https://api.github.com/repos/Thor77/youtube-dl/deployments","created_at":"2016-05-06T15:53:19Z","updated_at":"2016-05-06T15:53:41Z","pushed_at":"2016-10-18T11:12:10Z","git_url":"git://github.com/Thor77/youtube-dl.git","ssh_url":"git@github.com:Thor77/youtube-dl.git","clone_url":"https://github.com/Thor77/youtube-dl.git","svn_url":"https://github.com/Thor77/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":38820,"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":"rg3:master","ref":"master","sha":"bbd7706898e52f5e45f712c684737851a7fe5834","user":{"login":"rg3","id":53487,"avatar_url":"https://avatars.githubusercontent.com/u/53487?v=3","gravatar_id":"","url":"https://api.github.com/users/rg3","html_url":"https://github.com/rg3","followers_url":"https://api.github.com/users/rg3/followers","following_url":"https://api.github.com/users/rg3/following{/other_user}","gists_url":"https://api.github.com/users/rg3/gists{/gist_id}","starred_url":"https://api.github.com/users/rg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rg3/subscriptions","organizations_url":"https://api.github.com/users/rg3/orgs","repos_url":"https://api.github.com/users/rg3/repos","events_url":"https://api.github.com/users/rg3/events{/privacy}","received_events_url":"https://api.github.com/users/rg3/received_events","type":"User","site_admin":false},"repo":{"id":1039520,"name":"youtube-dl","full_name":"rg3/youtube-dl","owner":{"login":"rg3","id":53487,"avatar_url":"https://avatars.githubusercontent.com/u/53487?v=3","gravatar_id":"","url":"https://api.github.com/users/rg3","html_url":"https://github.com/rg3","followers_url":"https://api.github.com/users/rg3/followers","following_url":"https://api.github.com/users/rg3/following{/other_user}","gists_url":"https://api.github.com/users/rg3/gists{/gist_id}","starred_url":"https://api.github.com/users/rg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rg3/subscriptions","organizations_url":"https://api.github.com/users/rg3/orgs","repos_url":"https://api.github.com/users/rg3/repos","events_url":"https://api.github.com/users/rg3/events{/privacy}","received_events_url":"https://api.github.com/users/rg3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rg3/youtube-dl","description":"Command-line program to download videos from YouTube.com and other video sites","fork":false,"url":"https://api.github.com/repos/rg3/youtube-dl","forks_url":"https://api.github.com/repos/rg3/youtube-dl/forks","keys_url":"https://api.github.com/repos/rg3/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rg3/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rg3/youtube-dl/teams","hooks_url":"https://api.github.com/repos/rg3/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/rg3/youtube-dl/events","assignees_url":"https://api.github.com/repos/rg3/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/rg3/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/rg3/youtube-dl/tags","blobs_url":"https://api.github.com/repos/rg3/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rg3/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rg3/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/rg3/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/rg3/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/rg3/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/rg3/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/rg3/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/rg3/youtube-dl/subscription","commits_url":"https://api.github.com/repos/rg3/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/rg3/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/rg3/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/rg3/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rg3/youtube-dl/merges","archive_url":"https://api.github.com/repos/rg3/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rg3/youtube-dl/downloads","issues_url":"https://api.github.com/repos/rg3/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/rg3/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/rg3/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/rg3/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rg3/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/rg3/youtube-dl/releases{/id}","deployments_url":"https://api.github.com/repos/rg3/youtube-dl/deployments","created_at":"2010-10-31T14:35:07Z","updated_at":"2016-10-23T19:21:59Z","pushed_at":"2016-10-23T15:24:38Z","git_url":"git://github.com/rg3/youtube-dl.git","ssh_url":"git@github.com:rg3/youtube-dl.git","clone_url":"https://github.com/rg3/youtube-dl.git","svn_url":"https://github.com/rg3/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":127076,"stargazers_count":21004,"watchers_count":21004,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4029,"mirror_url":null,"open_issues_count":1472,"forks":4029,"open_issues":1472,"watchers":21004,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/10934"},"issue":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/10934"},"comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/10934/comments"},"review_comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934/comments"},"review_comment":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/10934/commits"},"statuses":{"href":"https://api.github.com/repos/rg3/youtube-dl/statuses/a57de1577eb7bf48ee1c886bddc3c609eed85609"}}}}
{"actor":{"display_login":"dstftw"}}