1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +01:00

[litv] fix extraction (closes #20488)

The extraction URL just changed.
It looks like the content of VOD00044841 changed too.
This commit is contained in:
時流 2019-06-08 23:16:14 +08:00
parent 2e11e51c04
commit 98c8ca087d

View File

@ -41,7 +41,7 @@ class LiTVIE(InfoExtractor):
'skip': 'Georestricted to Taiwan', 'skip': 'Georestricted to Taiwan',
}, { }, {
'url': 'https://www.litv.tv/promo/miyuezhuan/?content_id=VOD00044841&', 'url': 'https://www.litv.tv/promo/miyuezhuan/?content_id=VOD00044841&',
'md5': '88322ea132f848d6e3e18b32a832b918', 'md5': 'cc8d39510469700d8b7a7bdf675ea33e',
'info_dict': { 'info_dict': {
'id': 'VOD00044841', 'id': 'VOD00044841',
'ext': 'mp4', 'ext': 'mp4',
@ -112,7 +112,7 @@ class LiTVIE(InfoExtractor):
'contentType': program_info['contentType'], 'contentType': program_info['contentType'],
} }
video_data = self._download_json( video_data = self._download_json(
'https://www.litv.tv/vod/getMainUrl', video_id, 'https://www.litv.tv/vod/ajax/getMainUrlNoAuth', video_id,
data=json.dumps(payload).encode('utf-8'), data=json.dumps(payload).encode('utf-8'),
headers={'Content-Type': 'application/json'}) headers={'Content-Type': 'application/json'})