mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 18:41:29 +00:00
parent
e1feb88fdf
commit
83b20a970d
|
@ -79,8 +79,7 @@ def download_and_parse_fragment(url, frag_index, request_data):
|
||||||
|
|
||||||
self._prepare_and_start_frag_download(ctx)
|
self._prepare_and_start_frag_download(ctx)
|
||||||
|
|
||||||
success, raw_fragment = dl_fragment(
|
success, raw_fragment = dl_fragment(info_dict['url'])
|
||||||
'https://www.youtube.com/watch?v={}'.format(video_id))
|
|
||||||
if not success:
|
if not success:
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -2150,6 +2150,7 @@ def process_language(container, base_url, lang_code, query):
|
||||||
# This will error if there is no livechat
|
# This will error if there is no livechat
|
||||||
initial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']
|
initial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']
|
||||||
info['subtitles']['live_chat'] = [{
|
info['subtitles']['live_chat'] = [{
|
||||||
|
'url': 'https://www.youtube.com/watch?v=%s' % video_id, # url is needed to set cookies
|
||||||
'video_id': video_id,
|
'video_id': video_id,
|
||||||
'ext': 'json',
|
'ext': 'json',
|
||||||
'protocol': 'youtube_live_chat_replay',
|
'protocol': 'youtube_live_chat_replay',
|
||||||
|
|
Loading…
Reference in a new issue