diff options
author | Sergey M․ <[email protected]> | 2016-12-17 18:45:53 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2016-12-17 18:50:07 +0700 |
commit | 732d116aa7bed0940bec29af67dd271e47932818 (patch) | |
tree | 565b4a55b3d4dadab6a4e91807e711e827ebdb59 /youtube_dl/extractor | |
parent | a495840d3bb05619f9d38168b47f55f7aeb1ca87 (diff) | |
download | youtube-dl-732d116aa7bed0940bec29af67dd271e47932818.tar.gz youtube-dl-732d116aa7bed0940bec29af67dd271e47932818.zip |
[jwplatform] Improve duration extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/jwplatform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/jwplatform.py b/youtube_dl/extractor/jwplatform.py index 7037763cb..aff7ab49a 100644 --- a/youtube_dl/extractor/jwplatform.py +++ b/youtube_dl/extractor/jwplatform.py @@ -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, }) |