[ie/eplus] check if the url is not a player page but pass ticket index

This commit is contained in:
Mozi 2024-05-04 09:14:02 +00:00
parent 3a54ea4bf0
commit 113758dea6
1 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,10 @@ class EplusIbIE(InfoExtractor):
if data_json.get('drm_mode') == 'ON':
self.report_drm(video_id)
if data_json.get('is_pass_ticket') == 'YES':
raise ExtractorError(
'Pass ticket url is not supported, please use a url points to the player page', expected=True)
delivery_status = data_json.get('delivery_status')
archive_mode = data_json.get('archive_mode')
release_timestamp = try_call(lambda: unified_timestamp(data_json['event_datetime']) - 32400)