1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-24 17:36:09 +00:00

[ie/aenetworks] Fix extraction (#16036)

Fix 2485653859

Authored by: bashonly
This commit is contained in:
bashonly
2026-02-22 15:53:36 -06:00
committed by GitHub
parent e2a9cc7d13
commit 338dbebdb8

View File

@@ -91,8 +91,8 @@ class AENetworksBaseIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
if filter_key == 'canonical':
webpage = self._download_webpage(url, filter_value)
graphql_video_id = self._search_regex(
r'<meta\b[^>]+\bcontent="[^"]*\btpid/(\d+)"', webpage,
'id') or self._html_search_meta('videoId', webpage, 'GraphQL video ID', fatal=True)
r'<meta\b[^>]+\bcontent="[^"]*\btpid/(\d+)"', webpage, 'id',
default=None) or self._html_search_meta('videoId', webpage, 'GraphQL video ID', fatal=True)
else:
graphql_video_id = filter_value