Browse Source

[dailymotion] Extract duration (closes #6221)

totalwebcasting
cazulu 10 years ago
committed by Jaime Marquínez Ferrándiz
parent
commit
50aa2bb6b9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/dailymotion.py

+ 2
- 0
youtube_dl/extractor/dailymotion.py View File

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


Loading…
Cancel
Save