[youtube] Fix extraction.
[youtube-dl] / youtube_dl / extractor / fc2.py
index b9e58d4df9510546a159863971b2d4461366815a..435561147feb991cf3595a3a4d71914a5c0154f6 100644 (file)
@@ -46,7 +46,7 @@ class FC2IE(InfoExtractor):
     }]
 
     def _login(self):
-        (username, password) = self._get_login_info()
+        username, password = self._get_login_info()
         if username is None or password is None:
             return False
 
@@ -133,7 +133,7 @@ class FC2EmbedIE(InfoExtractor):
             'id': '201403223kCqB3Ez',
             'ext': 'flv',
             'title': 'プリズン・ブレイク S1-01 マイケル 【吹替】',
-            'thumbnail': 're:^https?://.*\.jpg$',
+            'thumbnail': r're:^https?://.*\.jpg$',
         },
     }
 
@@ -153,6 +153,7 @@ class FC2EmbedIE(InfoExtractor):
 
         return {
             '_type': 'url_transparent',
+            'ie_key': FC2IE.ie_key(),
             'url': 'fc2:%s' % video_id,
             'title': title,
             'thumbnail': thumbnail,