aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPetr Novak <petr.novak@cosmoboy.cz>2017-11-25 02:13:23 +0100
committerSergey M․ <dstftw@gmail.com>2017-12-02 21:16:36 +0700
commit41bf647e895faca42cdc2565ea034ed341593f8e (patch)
tree84742cbade67639e2adc109faba90763153a8af1 /youtube_dl
parentfea92aa65dbc28e3a5cd109a5b9de5048c9cdfc9 (diff)
[extractor/common] Add support for DASH manifests with SegmentLists with bare SegmentURLs
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 8e4ee0deb..15999411b 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -1975,6 +1975,15 @@ class InfoExtractor(object):
})
segment_index += 1
representation_ms_info['fragments'] = fragments
+ elif 'segment_urls' in representation_ms_info:
+ # Segment URLs with no SegmentTimeline
+ # Example: https://www.seznam.cz/zpravy/clanek/cesko-zasahne-vitr-o-sile-vichrice-muze-byt-i-zivotu-nebezpecny-39091
+ fragments = []
+ for segment_url in representation_ms_info['segment_urls']:
+ fragments.append({
+ location_key(segment_url): segment_url,
+ })
+ representation_ms_info['fragments'] = fragments
# NB: MPD manifest may contain direct URLs to unfragmented media.
# No fragments key is present in this case.
if 'fragments' in representation_ms_info: