mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 08:57:27 +08:00
added duration extractor for playerV5
This commit is contained in:
parent
ca134f3098
commit
1ae1e5d1d7
@ -217,7 +217,6 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
||||
'title')
|
||||
duration = self._search_regex(r'duration":(\d+),', embed_page,
|
||||
'video info-v5duration', flags=re.MULTILINE, fatal=False)
|
||||
print(duration)
|
||||
return {
|
||||
'id': video_id,
|
||||
'formats': formats,
|
||||
@ -228,6 +227,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
||||
'thumbnail': v5thumbnailurl,
|
||||
'age_limit': age_limit,
|
||||
'view_count': view_count,
|
||||
'duration': duration
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user