Compare commits

..

No commits in common. "0a5a1d9e19adabee348a0334659a57f95fa5d1e7" and "fbfc3334ad5fdb0cfc466a94fdce3395283f1aa4" have entirely different histories.

View File

@ -565,7 +565,7 @@ class TVPVODVideoIE(TVPVODBaseIE):
'info_dict': {
'id': '399731',
'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',
'thumbnail': 're:https?://.+',
},
@ -574,8 +574,8 @@ class TVPVODVideoIE(TVPVODBaseIE):
def _real_extract(self, url):
category, video_id = self._match_valid_url(url).group('category', 'id')
is_live = category == 'live,1'
entity = 'lives' if is_live else 'vods'
entity = 'lives' if category == 'live,1' else 'vods'
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'})
@ -593,7 +593,7 @@ class TVPVODVideoIE(TVPVODBaseIE):
'ext': 'ttml',
})
info_dict['is_live'] = is_live
info_dict['is_live'] = category == 'live,1'
return info_dict