]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[dailymotion:playlist] Carry long line
authorSergey M․ <dstftw@gmail.com>
Fri, 29 Jul 2016 15:47:34 +0000 (22:47 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 29 Jul 2016 15:47:34 +0000 (22:47 +0700)
youtube_dl/extractor/dailymotion.py

index 98d2c82f4a31cb6ede9fc6d2f84480ac7f5c6e40..496883d15bbc0b3e1a3503d0545ea1e46c33e6c9 100644 (file)
@@ -331,7 +331,9 @@ class DailymotionPlaylistIE(DailymotionBaseInfoExtractor):
 
             for video_id in re.findall(r'data-xid="(.+?)"', webpage):
                 if video_id not in video_ids:
-                    yield self.url_result('http://www.dailymotion.com/video/%s' % video_id, 'Dailymotion', video_id)
+                    yield self.url_result(
+                        'http://www.dailymotion.com/video/%s' % video_id,
+                        DailymotionIE.ie_key(), video_id)
                     video_ids.add(video_id)
 
             if re.search(self._MORE_PAGES_INDICATOR, webpage) is None: