summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-07-25 11:50:10 +0200
committerPhilipp Hagemeister <[email protected]>2014-07-25 11:50:10 +0200
commit7fa547ab027f52f2570fd3a6022c10830424227e (patch)
tree723516c0a9ab659f2515c9a48bcf5fe52bff63dd
parent3182f3e2dc62cf918fa12f578e2bbfc952862320 (diff)
downloadyoutube-dl-7fa547ab027f52f2570fd3a6022c10830424227e.tar.gz
youtube-dl-7fa547ab027f52f2570fd3a6022c10830424227e.zip
[livestream] Make clipBegin optional in SMIL
-rw-r--r--youtube_dl/extractor/livestream.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/livestream.py b/youtube_dl/extractor/livestream.py
index 444771bd3..2914343b9 100644
--- 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,