From c222f6cbfc332714bc30f3e9b945e44294a92c76 Mon Sep 17 00:00:00 2001 From: Elyse <26639800+elyse0@users.noreply.github.com> Date: Fri, 10 Mar 2023 01:12:38 -0600 Subject: [PATCH] [extractor/twitch] Fix `is_live` (#6500) Closes #6494 Authored by: elyse0 --- yt_dlp/extractor/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py index efc7db2c9..6321297bb 100644 --- a/yt_dlp/extractor/twitch.py +++ b/yt_dlp/extractor/twitch.py @@ -456,7 +456,7 @@ def _extract_info_gql(self, info, item_id): 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