[extractor/twitch] Fix `is_live` (#6500)

Closes #6494
Authored by: elyse0
pull/6510/head
Elyse 2023-03-10 01:12:38 -06:00 zatwierdzone przez GitHub
rodzic c9abebb851
commit 0551511b45
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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