From 338dbebdb8627a95bd8f72ed86fdc2d50c8e2d14 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Sun, 22 Feb 2026 15:53:36 -0600 Subject: [PATCH] [ie/aenetworks] Fix extraction (#16036) Fix 24856538595a3b25c75e1199146fcc82ea812d97 Authored by: bashonly --- yt_dlp/extractor/aenetworks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/aenetworks.py b/yt_dlp/extractor/aenetworks.py index 5f99ee99e3..65243c5b78 100644 --- a/yt_dlp/extractor/aenetworks.py +++ b/yt_dlp/extractor/aenetworks.py @@ -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']+\bcontent="[^"]*\btpid/(\d+)"', webpage, - 'id') or self._html_search_meta('videoId', webpage, 'GraphQL video ID', fatal=True) + r']+\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