projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3182f3e
)
[livestream] Make clipBegin optional in SMIL
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 25 Jul 2014 09:50:10 +0000
(11:50 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 25 Jul 2014 09:50:10 +0000
(11:50 +0200)
youtube_dl/extractor/livestream.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/livestream.py
b/youtube_dl/extractor/livestream.py
index 444771bd38ec1c8056493e1bbceeef0ff7799772..2914343b962ecbd2e3ffceab316d8f292de66773 100644
(file)
--- a/
youtube_dl/extractor/livestream.py
+++ b/
youtube_dl/extractor/livestream.py
@@
-73,8
+73,10
@@
class LivestreamIE(InfoExtractor):
for vn in video_nodes:
tbr = int_or_none(vn.attrib.get('system-bitrate'))
furl = (
- 'http://livestream-f.akamaihd.net/%s?v=3.0.3&fp=WIN%%2014,0,0,145&seek=%s' %
- (vn.attrib['src'], vn.attrib['clipBegin']))
+ 'http://livestream-f.akamaihd.net/%s?v=3.0.3&fp=WIN%%2014,0,0,145' %
+ (vn.attrib['src']))
+ if 'clipBegin' in vn.attrib:
+ furl += '&ssek=' + vn.attrib['clipBegin']
formats.append({
'url': furl,
'format_id': 'smil_%d' % tbr,