1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-23 11:36:56 +01:00

[wat.tv] Add version pver to metadata API call

Resolves #30959.
This commit is contained in:
dirkf 2022-05-19 17:41:48 +00:00 committed by GitHub
parent c7965b9fc2
commit c3deca86ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class WatIE(InfoExtractor):
# 'http://www.wat.tv/interface/contentv4s/' + video_id, video_id) # 'http://www.wat.tv/interface/contentv4s/' + video_id, video_id)
video_data = self._download_json( video_data = self._download_json(
'https://mediainfo.tf1.fr/mediainfocombo/' + video_id, 'https://mediainfo.tf1.fr/mediainfocombo/' + video_id,
video_id, query={'context': 'MYTF1'}) video_id, query={'context': 'MYTF1', 'pver': '4001000'})
video_info = video_data['media'] video_info = video_data['media']
error_desc = video_info.get('error_desc') error_desc = video_info.get('error_desc')