From 41bf647e895faca42cdc2565ea034ed341593f8e Mon Sep 17 00:00:00 2001 From: Petr Novak Date: Sat, 25 Nov 2017 02:13:23 +0100 Subject: [extractor/common] Add support for DASH manifests with SegmentLists with bare SegmentURLs --- youtube_dl/extractor/common.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'youtube_dl') 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: -- cgit v1.2.3