mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 02:01:25 +01:00
Compare commits
2 Commits
40420cce6d
...
51910a46e4
Author | SHA1 | Date | |
---|---|---|---|
|
51910a46e4 | ||
|
18a327f342 |
|
@ -368,10 +368,10 @@ class ARDBetaMediathekIE(InfoExtractor):
|
|||
|
||||
# For user convenience we use the old contentId instead of the longer crid
|
||||
# Ref: https://github.com/yt-dlp/yt-dlp/issues/8731#issuecomment-1874398283
|
||||
old_id = traverse_obj(page_data, ('tracking', 'atiCustomVars', 'contentId', {str_or_none}))
|
||||
if old_id:
|
||||
video_id = old_id
|
||||
archive_ids = [make_archive_id(ARDBetaMediathekIE, video_id)]
|
||||
old_id = traverse_obj(page_data, ('tracking', 'atiCustomVars', 'contentId', {int}))
|
||||
if old_id is not None:
|
||||
video_id = str(old_id)
|
||||
archive_ids = [make_archive_id(ARDBetaMediathekIE, display_id)]
|
||||
else:
|
||||
self.report_warning(f'Could not extract contentId{bug_reports_message()}')
|
||||
video_id = display_id
|
||||
|
|
Loading…
Reference in New Issue
Block a user