aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElyse <26639800+elyse0@users.noreply.github.com>2023-03-10 01:12:38 -0600
committerGitHub <noreply@github.com>2023-03-10 12:42:38 +0530
commit0551511b45f7847f40e4314aa9e624e80d086539 (patch)
treeda17a318657f39f945b2fb709c8915c9257ffdac
parentc9abebb851e6188cb34b9eb744c1863dd46af919 (diff)
downloadhypervideo-pre-0551511b45f7847f40e4314aa9e624e80d086539.tar.lz
hypervideo-pre-0551511b45f7847f40e4314aa9e624e80d086539.tar.xz
hypervideo-pre-0551511b45f7847f40e4314aa9e624e80d086539.zip
[extractor/twitch] Fix `is_live` (#6500)
Closes #6494 Authored by: elyse0
-rw-r--r--yt_dlp/extractor/twitch.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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