mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 08:34:32 +01:00
Merge branch 'pr/viuott' into pr/viuott-series
This commit is contained in:
commit
c7c0f4f301
@ -368,9 +368,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))
|
||||
time_duration = int_or_none(video_data.get('time_duration'))
|
||||
query.update({
|
||||
'duration': video_data.get('time_duration', '9999999'),
|
||||
'duration_start': '0'
|
||||
'duration': time_duration if time_duration > 0 else '9999999',
|
||||
'duration_start': '0',
|
||||
})
|
||||
stream_url = temp._replace(query=compat_urlparse.urlencode(query)).geturl()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user