浏览代码

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

Antti Ajanki 10 年之前
父节点
当前提交
6f4ba54079
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      youtube_dl/extractor/common.py

+ 8 - 0
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 """