mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 11:44:33 +01:00
[viu:ott] substitute duration from api data
This commit is contained in:
parent
438bd67f43
commit
378b1c4635
@ -320,7 +320,10 @@ class ViuOTTIE(InfoExtractor):
|
||||
if duration_limit:
|
||||
temp = compat_urlparse.urlparse(stream_url)
|
||||
query = dict(compat_urlparse.parse_qsl(temp.query, keep_blank_values=True))
|
||||
query.update({'duration': '9999999', 'duration_start': '0'})
|
||||
query.update({
|
||||
'duration': video_data.get('time_duration', '9999999'),
|
||||
'duration_start': '0'
|
||||
})
|
||||
stream_url = temp._replace(query=compat_urlparse.urlencode(query)).geturl()
|
||||
|
||||
formats.append({
|
||||
|
Loading…
Reference in New Issue
Block a user