aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/youtube.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-23 17:53:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-23 17:53:36 +0530
commit83b20a970d9f3401eaab6f520d099b599f250d5d (patch)
tree6abd2cb240d7ce8399cc4980027d3ff49751861a /yt_dlp/extractor/youtube.py
parente1feb88fdf09203e64a9f4cf7a761c228a21d720 (diff)
[youtube_live_chat] fix bug when trying to set cookies
Closes #194
Diffstat (limited to 'yt_dlp/extractor/youtube.py')
-rw-r--r--yt_dlp/extractor/youtube.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index 6c93517d4..57300114d 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -2150,6 +2150,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
# This will error if there is no livechat
initial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']
info['subtitles']['live_chat'] = [{
+ 'url': 'https://www.youtube.com/watch?v=%s' % video_id, # url is needed to set cookies
'video_id': video_id,
'ext': 'json',
'protocol': 'youtube_live_chat_replay',