mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 07:07:15 +08:00
Update viu.py
Fixes Viu ott video extraction by adding 'language_flag_id' and 'ut' to the query. Closes #26701
This commit is contained in:
parent
d65d89183f
commit
3e942647a7
@ -208,7 +208,9 @@ class ViuOTTIE(InfoExtractor):
|
||||
query = {
|
||||
'r': 'vod/ajax-detail',
|
||||
'platform_flag_label': 'web',
|
||||
'language_flag_id': 3,
|
||||
'product_id': video_id,
|
||||
'ut': 2,
|
||||
}
|
||||
|
||||
area_id = self._AREA_ID.get(country_code.upper())
|
||||
@ -226,7 +228,7 @@ class ViuOTTIE(InfoExtractor):
|
||||
stream_data = self._download_json(
|
||||
'https://d1k2us671qcoau.cloudfront.net/distribute_web_%s.php' % country_code,
|
||||
video_id, 'Downloading stream info', query={
|
||||
'ccs_product_id': video_data['ccs_product_id'],
|
||||
'ccs_product_id': video_data['ccs_product_id'], 'language_flag_id': 3,
|
||||
}, headers={
|
||||
'Referer': url,
|
||||
'Origin': re.search(r'https?://[^/]+', url).group(0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user