Skip to content

Commit

Permalink
[extractor/twitch] Fix is_live (yt-dlp#6500)
Browse files Browse the repository at this point in the history
Closes yt-dlp#6494
Authored by: elyse0
  • Loading branch information
elyse0 committed Mar 12, 2023
1 parent 2d16554 commit c222f6c
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 c222f6c

Please sign in to comment.