mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 09:57:16 +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 = {
|
query = {
|
||||||
'r': 'vod/ajax-detail',
|
'r': 'vod/ajax-detail',
|
||||||
'platform_flag_label': 'web',
|
'platform_flag_label': 'web',
|
||||||
|
'language_flag_id': 3,
|
||||||
'product_id': video_id,
|
'product_id': video_id,
|
||||||
|
'ut': 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
area_id = self._AREA_ID.get(country_code.upper())
|
area_id = self._AREA_ID.get(country_code.upper())
|
||||||
@ -226,7 +228,7 @@ class ViuOTTIE(InfoExtractor):
|
|||||||
stream_data = self._download_json(
|
stream_data = self._download_json(
|
||||||
'https://d1k2us671qcoau.cloudfront.net/distribute_web_%s.php' % country_code,
|
'https://d1k2us671qcoau.cloudfront.net/distribute_web_%s.php' % country_code,
|
||||||
video_id, 'Downloading stream info', query={
|
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={
|
}, headers={
|
||||||
'Referer': url,
|
'Referer': url,
|
||||||
'Origin': re.search(r'https?://[^/]+', url).group(0),
|
'Origin': re.search(r'https?://[^/]+', url).group(0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user