{"action":"created","comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/46773283","id":46773283,"diff_hunk":"@@ -0,0 +1,92 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+from .common import InfoExtractor\n+from ..compat import compat_HTTPError\n+from ..utils import (\n+    sanitized_Request,\n+    ExtractorError,\n+    urlencode_postdata\n+)\n+\n+import re\n+\n+class FunimationIE(InfoExtractor):\n+    _VALID_URL = r'https?://(?:www\\.)?funimation\\.com/shows/.*/videos/official/(?P<id>[^?]+)'\n+    _USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7'\n+\n+    _TEST = {\n+        'url': 'http://www.funimation.com/shows/air/videos/official/breeze',\n+        'info_dict': {\n+            'id': 'AIRENG0001',\n+            'title': 'Air - Breeze',\n+            'ext': 'mp4',\n+        },\n+        'params': {\n+            'format': 'lower',\n+        }\n+    }\n+\n+    def _real_initialize(self):\n+        self._login()\n+\n+    def _login(self):\n+        (username, password) = self._get_login_info()","path":"youtube_dl/extractor/funimation.py","position":33,"original_position":33,"commit_id":"1c4942c16040a073d55a4ce7a058d91962d8ea37","original_commit_id":"1c4942c16040a073d55a4ce7a058d91962d8ea37","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":"You try logging in even when no username/password is specified.","created_at":"2015-12-06T17:37:40Z","updated_at":"2015-12-06T17:37:40Z","html_url":"https://github.com/rg3/youtube-dl/pull/7767#discussion_r46773283","pull_request_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767","_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/46773283"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/7767#discussion_r46773283"},"pull_request":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767"}}},"pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767","id":52759610,"html_url":"https://github.com/rg3/youtube-dl/pull/7767","diff_url":"https://github.com/rg3/youtube-dl/pull/7767.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/7767.patch","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/7767","number":7767,"state":"open","locked":false,"title":"[funimation] Add new extractor","user":{"login":"Slyneth","id":11796659,"avatar_url":"https://avatars.githubusercontent.com/u/11796659?v=3","gravatar_id":"","url":"https://api.github.com/users/Slyneth","html_url":"https://github.com/Slyneth","followers_url":"https://api.github.com/users/Slyneth/followers","following_url":"https://api.github.com/users/Slyneth/following{/other_user}","gists_url":"https://api.github.com/users/Slyneth/gists{/gist_id}","starred_url":"https://api.github.com/users/Slyneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slyneth/subscriptions","organizations_url":"https://api.github.com/users/Slyneth/orgs","repos_url":"https://api.github.com/users/Slyneth/repos","events_url":"https://api.github.com/users/Slyneth/events{/privacy}","received_events_url":"https://api.github.com/users/Slyneth/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-05T17:31:45Z","updated_at":"2015-12-06T17:37:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e611b92d51850f16590220168ed6139ad614041b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767/commits","review_comments_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767/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/7767/comments","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/1c4942c16040a073d55a4ce7a058d91962d8ea37","head":{"label":"Slyneth:funimation","ref":"funimation","sha":"1c4942c16040a073d55a4ce7a058d91962d8ea37","user":{"login":"Slyneth","id":11796659,"avatar_url":"https://avatars.githubusercontent.com/u/11796659?v=3","gravatar_id":"","url":"https://api.github.com/users/Slyneth","html_url":"https://github.com/Slyneth","followers_url":"https://api.github.com/users/Slyneth/followers","following_url":"https://api.github.com/users/Slyneth/following{/other_user}","gists_url":"https://api.github.com/users/Slyneth/gists{/gist_id}","starred_url":"https://api.github.com/users/Slyneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slyneth/subscriptions","organizations_url":"https://api.github.com/users/Slyneth/orgs","repos_url":"https://api.github.com/users/Slyneth/repos","events_url":"https://api.github.com/users/Slyneth/events{/privacy}","received_events_url":"https://api.github.com/users/Slyneth/received_events","type":"User","site_admin":false},"repo":{"id":47283247,"name":"youtube-dl","full_name":"Slyneth/youtube-dl","owner":{"login":"Slyneth","id":11796659,"avatar_url":"https://avatars.githubusercontent.com/u/11796659?v=3","gravatar_id":"","url":"https://api.github.com/users/Slyneth","html_url":"https://github.com/Slyneth","followers_url":"https://api.github.com/users/Slyneth/followers","following_url":"https://api.github.com/users/Slyneth/following{/other_user}","gists_url":"https://api.github.com/users/Slyneth/gists{/gist_id}","starred_url":"https://api.github.com/users/Slyneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slyneth/subscriptions","organizations_url":"https://api.github.com/users/Slyneth/orgs","repos_url":"https://api.github.com/users/Slyneth/repos","events_url":"https://api.github.com/users/Slyneth/events{/privacy}","received_events_url":"https://api.github.com/users/Slyneth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slyneth/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/Slyneth/youtube-dl","forks_url":"https://api.github.com/repos/Slyneth/youtube-dl/forks","keys_url":"https://api.github.com/repos/Slyneth/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slyneth/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slyneth/youtube-dl/teams","hooks_url":"https://api.github.com/repos/Slyneth/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/Slyneth/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/Slyneth/youtube-dl/events","assignees_url":"https://api.github.com/repos/Slyneth/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/Slyneth/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/Slyneth/youtube-dl/tags","blobs_url":"https://api.github.com/repos/Slyneth/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slyneth/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slyneth/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slyneth/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slyneth/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/Slyneth/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/Slyneth/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/Slyneth/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/Slyneth/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/Slyneth/youtube-dl/subscription","commits_url":"https://api.github.com/repos/Slyneth/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slyneth/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slyneth/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slyneth/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Slyneth/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/Slyneth/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slyneth/youtube-dl/merges","archive_url":"https://api.github.com/repos/Slyneth/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slyneth/youtube-dl/downloads","issues_url":"https://api.github.com/repos/Slyneth/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/Slyneth/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/Slyneth/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/Slyneth/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slyneth/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/Slyneth/youtube-dl/releases{/id}","created_at":"2015-12-02T19:26:27Z","updated_at":"2015-12-02T19:26:39Z","pushed_at":"2015-12-06T16:23:58Z","git_url":"git://github.com/Slyneth/youtube-dl.git","ssh_url":"git@github.com:Slyneth/youtube-dl.git","clone_url":"https://github.com/Slyneth/youtube-dl.git","svn_url":"https://github.com/Slyneth/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":34915,"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":"7d682f0acb44d72a2c1d0d52fae151f3c273874d","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-12-06T17:00:08Z","pushed_at":"2015-12-06T16:23:58Z","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":107608,"stargazers_count":12991,"watchers_count":12991,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2670,"mirror_url":null,"open_issues_count":1396,"forks":2670,"open_issues":1396,"watchers":12991,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/7767"},"issue":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/7767"},"comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/7767/comments"},"review_comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/7767/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/7767/commits"},"statuses":{"href":"https://api.github.com/repos/rg3/youtube-dl/statuses/1c4942c16040a073d55a4ce7a058d91962d8ea37"}}}}