1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-25 05:57:55 +01:00

[AnimeLab] Extract duration

This commit is contained in:
Mariusz Skoneczko 2017-09-09 18:29:15 +10:00
parent 27076a6e22
commit d773d032a6

View File

@ -119,6 +119,8 @@ class AnimeLabIE(InfoExtractor):
description = raw_data.get('synopsis') or self._og_search_description(webpage, default=None)
duration = int_or_none(raw_data.get('duration'))
thumbnail_data = raw_data.get('thumbnailInstance', {})
image_data = thumbnail_data.get('imageInfo', {})
thumbnails = [{
@ -189,6 +191,7 @@ class AnimeLabIE(InfoExtractor):
'episode': episode_name,
'episode_number': int_or_none(episode_number),
'thumbnails': thumbnails,
'duration': duration,
'formats': formats,
}