projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[extractor/common] Extract HTTP (possibly f4m) URLs from a .smil file
[youtube-dl]
/
youtube_dl
/
extractor
/
common.py
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 4fe99d25de7d615aeca56a1f9608e5053a77d522..31368820836f8d5d6f8ae571d508da40940221be 100644
(file)
--- 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)
'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 """
def _live_title(self, name):
""" Generate the title for a live video """