Skip to content

Commit

Permalink
[extractor/twitch] Fix is_live (#6500)
Browse files Browse the repository at this point in the history
Closes #6494
Authored by: elyse0
  • Loading branch information
elyse0 committed Mar 10, 2023
1 parent c9abebb commit 0551511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/twitch.py
Expand Up @@ -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
Expand Down

0 comments on commit 0551511

Please sign in to comment.