Skip to content

A feature-rich command-line audio/video downloader

[extractor/common] Extract HTTP (possibly f4m) URLs from a .smil file

Antti Ajanki6f4ba5407989
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 4fe99d25de..3136882083 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -963,6 +963,14 @@ class InfoExtractor(object):
'width': width,
'height': height,
}], rtmp_count)
+ elif proto.startswith('http'):
+ return ([{
+ 'url': base + src,
+ 'ext': ext or 'flv',
+ 'tbr': bitrate,
+ 'width': width,
+ 'height': height,
+ }], rtmp_count)
def _live_title(self, name):
""" Generate the title for a live video """