[dailymotion] Extract duration (closes #6221)
authorcazulu <jvlarapeinado@gmail.com>
Tue, 14 Jul 2015 06:33:55 +0000 (15:33 +0900)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 14 Jul 2015 10:50:34 +0000 (12:50 +0200)
youtube_dl/extractor/dailymotion.py

index 8852f0add793ebee0bf0efae4fd0db70d54b8210..1a41c0db181c43c9c35d24988b9fd118c248f399 100644 (file)
@@ -53,6 +53,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
                 'uploader': 'IGN',
                 'title': 'Steam Machine Models, Pricing Listed on Steam Store - IGN News',
                 'upload_date': '20150306',
+                'duration': 74,
             }
         },
         # Vevo video
@@ -164,6 +165,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
             'thumbnail': info['thumbnail_url'],
             'age_limit': age_limit,
             'view_count': view_count,
+            'duration': info['duration']
         }
 
     def _get_subtitles(self, video_id, webpage):