Skip to content

A feature-rich command-line audio/video downloader

[extractor/twitch] Fix `is_live` (#6500)

Elyse0551511b45f7
diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py
index efc7db2c9b..6321297bb1 100644
--- a/yt_dlp/extractor/twitch.py
+++ b/yt_dlp/extractor/twitch.py
@@ -456,7 +456,7 @@ class TwitchVodIE(TwitchBaseIE):
thumbnail = url_or_none(info.get('previewThumbnailURL'))
is_live = None
if thumbnail:
- if thumbnail.endswith('/404_processing_{width}x{height}.png'):
+ if re.findall(r'/404_processing_[^.?#]+\.png', thumbnail):
is_live, thumbnail = True, None
else:
is_live = False