mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-12 05:18:30 +00:00
[ie/twitch:vod] Fix live_status
detection (#14457)
Closes #14455 Authored by: bashonly
This commit is contained in:
parent
94c5622be9
commit
50e452fd7d
@ -514,7 +514,10 @@ def _extract_info_gql(self, info, item_id):
|
|||||||
is_live = None
|
is_live = None
|
||||||
if thumbnail:
|
if thumbnail:
|
||||||
if re.findall(r'/404_processing_[^.?#]+\.png', thumbnail):
|
if re.findall(r'/404_processing_[^.?#]+\.png', thumbnail):
|
||||||
is_live, thumbnail = True, None
|
# False positive for is_live if info.get('broadcastType') == 'HIGHLIGHT'
|
||||||
|
# See https://github.com/yt-dlp/yt-dlp/issues/14455
|
||||||
|
is_live = info.get('broadcastType') == 'ARCHIVE'
|
||||||
|
thumbnail = None
|
||||||
else:
|
else:
|
||||||
is_live = False
|
is_live = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user