[extractor/common] Extract HTTP (possibly f4m) URLs from a .smil file
authorAntti Ajanki <antti.ajanki@iki.fi>
Sun, 22 Feb 2015 08:18:36 +0000 (10:18 +0200)
committerAntti Ajanki <antti.ajanki@iki.fi>
Tue, 24 Feb 2015 19:22:59 +0000 (21:22 +0200)
youtube_dl/extractor/common.py

index 4fe99d25de7d615aeca56a1f9608e5053a77d522..31368820836f8d5d6f8ae571d508da40940221be 100644 (file)
@@ -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 """