Skip to content

Commit

Permalink
[ie/eplus] check if the url is not a player page but pass ticket index
Browse files Browse the repository at this point in the history
  • Loading branch information
pzhlkj6612 committed May 4, 2024
1 parent 3a54ea4 commit 113758d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yt_dlp/extractor/eplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def _real_extract(self, url):
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)
Expand Down

0 comments on commit 113758d

Please sign in to comment.