aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-08-15 23:58:00 +0700
committerSergey M․ <dstftw@gmail.com>2017-08-15 23:58:00 +0700
commit485047854376465f95309daad4966971f56728ef (patch)
tree5c67709c2b31ebbca89d9533bc9293c38ba7747e /youtube_dl/extractor
parentda20951a57bddd4a0102cd776ff93a2adc6db77d (diff)
[extractor/common] Add support for float durations in _parse_mpd_formats (closes #13919)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py2
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'))