mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-17 04:40:44 +02:00
[livestream] Make clipBegin optional in SMIL
This commit is contained in:
parent
3182f3e2dc
commit
7fa547ab02
@ -73,8 +73,10 @@ def _extract_video_info(self, video_data):
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user