mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 15:25:49 +00:00
fix premiere live chat
They have isLiveContent = false so just check if the live chat renderer continuation exists
This commit is contained in:
parent
88a68db03e
commit
f0f76a33dc
@ -2001,13 +2001,12 @@ def feed_entry(name):
|
||||
is_live = bool_or_none(video_details.get('isLive'))
|
||||
|
||||
has_live_chat_replay = False
|
||||
is_live_content = bool_or_none(video_details.get('isLiveContent'))
|
||||
if not is_live and is_live_content:
|
||||
if not is_live:
|
||||
yt_initial_data = self._get_yt_initial_data(video_id, video_webpage)
|
||||
try:
|
||||
yt_initial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']
|
||||
has_live_chat_replay = True
|
||||
except (KeyError, IndexError):
|
||||
except (KeyError, IndexError, TypeError):
|
||||
pass
|
||||
|
||||
# Check for "rental" videos
|
||||
|
Loading…
Reference in New Issue
Block a user