mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-25 18:27:42 +00:00
[jwplatform] Improve duration extraction
This commit is contained in:
parent
a495840d3b
commit
732d116aa7
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class JWPlatformBaseIE(InfoExtractor):
|
|||
'description': video_data.get('description'),
|
||||
'thumbnail': self._proto_relative_url(video_data.get('image')),
|
||||
'timestamp': int_or_none(video_data.get('pubdate')),
|
||||
'duration': float_or_none(jwplayer_data.get('duration')),
|
||||
'duration': float_or_none(jwplayer_data.get('duration') or video_data.get('duration')),
|
||||
'subtitles': subtitles,
|
||||
'formats': formats,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue