Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Sawicki
51910a46e4
Review 2024-01-05 21:03:34 +01:00
Simon Sawicki
18a327f342
Fix old archive id 2024-01-05 18:12:08 +01:00

View File

@ -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