mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-03 07:41:27 +02:00
Compare commits
2 Commits
fbfc3334ad
...
0a5a1d9e19
Author | SHA1 | Date | |
---|---|---|---|
|
0a5a1d9e19 | ||
|
ee40684652 |
|
@ -565,7 +565,7 @@ class TVPVODVideoIE(TVPVODBaseIE):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '399731',
|
'id': '399731',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': r're:TVP WORLD(?: \d{4}-\d{2}-\d{2} \d{2}:\d{2})?',
|
'title': r're:TVP WORLD \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
'thumbnail': 're:https?://.+',
|
'thumbnail': 're:https?://.+',
|
||||||
},
|
},
|
||||||
|
@ -574,8 +574,8 @@ class TVPVODVideoIE(TVPVODBaseIE):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
category, video_id = self._match_valid_url(url).group('category', 'id')
|
category, video_id = self._match_valid_url(url).group('category', 'id')
|
||||||
|
|
||||||
entity = 'lives' if category == 'live,1' else 'vods'
|
is_live = category == 'live,1'
|
||||||
|
entity = 'lives' if is_live else 'vods'
|
||||||
info_dict = self._parse_video(self._call_api(f'{entity}/{video_id}', video_id), with_url=False)
|
info_dict = self._parse_video(self._call_api(f'{entity}/{video_id}', video_id), with_url=False)
|
||||||
|
|
||||||
playlist = self._call_api(f'{video_id}/videos/playlist', video_id, query={'videoType': 'MOVIE'})
|
playlist = self._call_api(f'{video_id}/videos/playlist', video_id, query={'videoType': 'MOVIE'})
|
||||||
|
@ -593,7 +593,7 @@ class TVPVODVideoIE(TVPVODBaseIE):
|
||||||
'ext': 'ttml',
|
'ext': 'ttml',
|
||||||
})
|
})
|
||||||
|
|
||||||
info_dict['is_live'] = category == 'live,1'
|
info_dict['is_live'] = is_live
|
||||||
|
|
||||||
return info_dict
|
return info_dict
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user