0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 01:25:11 +00:00

[extractor/twitch] Fix is_live (#6500)

Closes #6494
Authored by: elyse0
This commit is contained in:
Elyse 2023-03-10 01:12:38 -06:00 committed by GitHub
parent c9abebb851
commit 0551511b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -456,7 +456,7 @@ def _extract_info_gql(self, info, item_id):
thumbnail = url_or_none(info.get('previewThumbnailURL')) thumbnail = url_or_none(info.get('previewThumbnailURL'))
is_live = None is_live = None
if thumbnail: if thumbnail:
if thumbnail.endswith('/404_processing_{width}x{height}.png'): if re.findall(r'/404_processing_[^.?#]+\.png', thumbnail):
is_live, thumbnail = True, None is_live, thumbnail = True, None
else: else:
is_live = False is_live = False