diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-15 23:58:00 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-15 23:58:00 +0700 |
commit | 485047854376465f95309daad4966971f56728ef (patch) | |
tree | 5c67709c2b31ebbca89d9533bc9293c38ba7747e /youtube_dl | |
parent | da20951a57bddd4a0102cd776ff93a2adc6db77d (diff) |
[extractor/common] Add support for float durations in _parse_mpd_formats (closes #13919)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 7fe888462..e747258aa 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1786,7 +1786,7 @@ class InfoExtractor(object): ms_info['timescale'] = int(timescale) segment_duration = source.get('duration') if segment_duration: - ms_info['segment_duration'] = int(segment_duration) + ms_info['segment_duration'] = float(segment_duration) def extract_Initialization(source): initialization = source.find(_add_ns('Initialization')) |