{"action":"created","comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/23501119","id":23501119,"diff_hunk":"@@ -0,0 +1,100 @@\n+# encoding: utf-8\n+from __future__ import unicode_literals\n+\n+import re\n+import json\n+\n+from .common import InfoExtractor\n+from ..utils import (\n+    ExtractorError,\n+    clean_html,\n+    unified_strdate,\n+    int_or_none,\n+)\n+\n+\n+class RTL2IE(InfoExtractor):\n+    \"\"\"Information Extractor for RTL NOW, RTL2 NOW, RTL NITRO, SUPER RTL NOW, VOX NOW and n-tv NOW\"\"\"\n+    _VALID_URL = r'http?://(?P<url>(?P<domain>(www\\.)?rtl2\\.de)/.*/(?P<video_id>.*))'\n+    _TESTS = [{\n+            'url': 'http://www.rtl2.de/sendung/grip-das-motormagazin/folge/folge-203-0',\n+            'info_dict': {\n+                'id': 'folge-203-0',\n+                'ext': 'f4v',\n+                'title': 'GRIP sucht den Sommerk\\xf6nig',\n+                'description' : 'Matthias, Det und Helge treten gegeneinander an.'\n+            },\n+            'params': {\n+                # rtmp download\n+                #'skip_download': True,\n+            },\n+        },\n+        {\n+            'url': 'http://www.rtl2.de/sendung/koeln-50667/video/5512-anna/21040-anna-erwischt-alex/',\n+            'info_dict': {\n+                'id': '21040-anna-erwischt-alex',\n+                'ext': 'f4v',\n+                'title': 'GRIP sucht den Sommerk\\xf6nig',\n+                'description' : 'Matthias, Det und Helge treten gegeneinander an.'\n+            },\n+            'params': {\n+                # rtmp download\n+                #'skip_download': True,\n+            },\n+        },\n+    ]\n+\n+    def _real_extract(self, url):\n+        mobj = re.match(self._VALID_URL, url)\n+        video_page_url = 'http://%s/' % mobj.group('domain')","path":"youtube_dl/extractor/rtl2.py","position":49,"original_position":49,"commit_id":"6695916045123b76d4f0bd1761b6986c542a5a55","original_commit_id":"6695916045123b76d4f0bd1761b6986c542a5a55","user":{"login":"phihag","id":779568,"avatar_url":"https://avatars.githubusercontent.com/u/779568?v=3","gravatar_id":"","url":"https://api.github.com/users/phihag","html_url":"https://github.com/phihag","followers_url":"https://api.github.com/users/phihag/followers","following_url":"https://api.github.com/users/phihag/following{/other_user}","gists_url":"https://api.github.com/users/phihag/gists{/gist_id}","starred_url":"https://api.github.com/users/phihag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phihag/subscriptions","organizations_url":"https://api.github.com/users/phihag/orgs","repos_url":"https://api.github.com/users/phihag/repos","events_url":"https://api.github.com/users/phihag/events{/privacy}","received_events_url":"https://api.github.com/users/phihag/received_events","type":"User","site_admin":false},"body":"what is this line for?","created_at":"2015-01-25T01:45:22Z","updated_at":"2015-01-25T01:45:22Z","html_url":"https://github.com/rg3/youtube-dl/pull/4780#discussion_r23501119","pull_request_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780","_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/23501119"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/4780#discussion_r23501119"},"pull_request":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780"}}},"pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780","id":27984098,"html_url":"https://github.com/rg3/youtube-dl/pull/4780","diff_url":"https://github.com/rg3/youtube-dl/pull/4780.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/4780.patch","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/4780","number":4780,"state":"open","locked":false,"title":"[rtl2.py] Add new extractor","user":{"login":"David-Development","id":4489723,"avatar_url":"https://avatars.githubusercontent.com/u/4489723?v=3","gravatar_id":"","url":"https://api.github.com/users/David-Development","html_url":"https://github.com/David-Development","followers_url":"https://api.github.com/users/David-Development/followers","following_url":"https://api.github.com/users/David-Development/following{/other_user}","gists_url":"https://api.github.com/users/David-Development/gists{/gist_id}","starred_url":"https://api.github.com/users/David-Development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/David-Development/subscriptions","organizations_url":"https://api.github.com/users/David-Development/orgs","repos_url":"https://api.github.com/users/David-Development/repos","events_url":"https://api.github.com/users/David-Development/events{/privacy}","received_events_url":"https://api.github.com/users/David-Development/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-24T23:13:17Z","updated_at":"2015-01-25T01:45:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b35630b77777f7fa5c04e91fb9b3e9d43f80ae9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780/commits","review_comments_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780/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/4780/comments","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/6695916045123b76d4f0bd1761b6986c542a5a55","head":{"label":"David-Development:rtl2.py","ref":"rtl2.py","sha":"6695916045123b76d4f0bd1761b6986c542a5a55","user":{"login":"David-Development","id":4489723,"avatar_url":"https://avatars.githubusercontent.com/u/4489723?v=3","gravatar_id":"","url":"https://api.github.com/users/David-Development","html_url":"https://github.com/David-Development","followers_url":"https://api.github.com/users/David-Development/followers","following_url":"https://api.github.com/users/David-Development/following{/other_user}","gists_url":"https://api.github.com/users/David-Development/gists{/gist_id}","starred_url":"https://api.github.com/users/David-Development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/David-Development/subscriptions","organizations_url":"https://api.github.com/users/David-Development/orgs","repos_url":"https://api.github.com/users/David-Development/repos","events_url":"https://api.github.com/users/David-Development/events{/privacy}","received_events_url":"https://api.github.com/users/David-Development/received_events","type":"User","site_admin":false},"repo":{"id":29784082,"name":"youtube-dl","full_name":"David-Development/youtube-dl","owner":{"login":"David-Development","id":4489723,"avatar_url":"https://avatars.githubusercontent.com/u/4489723?v=3","gravatar_id":"","url":"https://api.github.com/users/David-Development","html_url":"https://github.com/David-Development","followers_url":"https://api.github.com/users/David-Development/followers","following_url":"https://api.github.com/users/David-Development/following{/other_user}","gists_url":"https://api.github.com/users/David-Development/gists{/gist_id}","starred_url":"https://api.github.com/users/David-Development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/David-Development/subscriptions","organizations_url":"https://api.github.com/users/David-Development/orgs","repos_url":"https://api.github.com/users/David-Development/repos","events_url":"https://api.github.com/users/David-Development/events{/privacy}","received_events_url":"https://api.github.com/users/David-Development/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/David-Development/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/David-Development/youtube-dl","forks_url":"https://api.github.com/repos/David-Development/youtube-dl/forks","keys_url":"https://api.github.com/repos/David-Development/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/David-Development/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/David-Development/youtube-dl/teams","hooks_url":"https://api.github.com/repos/David-Development/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/David-Development/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/David-Development/youtube-dl/events","assignees_url":"https://api.github.com/repos/David-Development/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/David-Development/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/David-Development/youtube-dl/tags","blobs_url":"https://api.github.com/repos/David-Development/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/David-Development/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/David-Development/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/David-Development/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/David-Development/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/David-Development/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/David-Development/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/David-Development/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/David-Development/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/David-Development/youtube-dl/subscription","commits_url":"https://api.github.com/repos/David-Development/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/David-Development/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/David-Development/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/David-Development/youtube-dl/issues/comments/{number}","contents_url":"https://api.github.com/repos/David-Development/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/David-Development/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/David-Development/youtube-dl/merges","archive_url":"https://api.github.com/repos/David-Development/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/David-Development/youtube-dl/downloads","issues_url":"https://api.github.com/repos/David-Development/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/David-Development/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/David-Development/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/David-Development/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/David-Development/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/David-Development/youtube-dl/releases{/id}","created_at":"2015-01-24T17:06:32Z","updated_at":"2015-01-24T17:06:39Z","pushed_at":"2015-01-24T23:09:55Z","git_url":"git://github.com/David-Development/youtube-dl.git","ssh_url":"git@github.com:David-Development/youtube-dl.git","clone_url":"https://github.com/David-Development/youtube-dl.git","svn_url":"https://github.com/David-Development/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":63818,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"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":"1070711d6003e6750b8cf803c3926b2e273a9e85","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":"Small 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}","created_at":"2010-10-31T14:35:07Z","updated_at":"2015-01-25T01:43:46Z","pushed_at":"2015-01-25T01:43:46Z","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":63818,"stargazers_count":8066,"watchers_count":8066,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1590,"mirror_url":null,"open_issues_count":1002,"forks":1590,"open_issues":1002,"watchers":8066,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/4780"},"issue":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/4780"},"comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/4780/comments"},"review_comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/4780/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/4780/commits"},"statuses":{"href":"https://api.github.com/repos/rg3/youtube-dl/statuses/6695916045123b76d4f0bd1761b6986c542a5a55"}}}}