aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/downloader/fragment.py
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2021-02-15 11:57:21 +0200
committerGitHub <noreply@github.com>2021-02-15 15:27:21 +0530
commit273762c8d045ace16143a6614c8d258f02a8094b (patch)
treebb4422037784a4df69754baea8db036d1cfe44a2 /youtube_dlc/downloader/fragment.py
parent7620cd46c3ac6c265be3730925281f77a801c89c (diff)
#86 [youtube_live_chat] Use POST API (Closes #82)
YouTube has removed support for the old GET based live chat API, and it's now returning 404 Authored by siikamiika
Diffstat (limited to 'youtube_dlc/downloader/fragment.py')
-rw-r--r--youtube_dlc/downloader/fragment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dlc/downloader/fragment.py b/youtube_dlc/downloader/fragment.py
index f4104c713..5bc7f50f6 100644
--- a/youtube_dlc/downloader/fragment.py
+++ b/youtube_dlc/downloader/fragment.py
@@ -95,11 +95,12 @@ class FragmentFD(FileDownloader):
frag_index_stream.write(json.dumps({'downloader': downloader}))
frag_index_stream.close()
- def _download_fragment(self, ctx, frag_url, info_dict, headers=None):
+ def _download_fragment(self, ctx, frag_url, info_dict, headers=None, request_data=None):
fragment_filename = '%s-Frag%d' % (ctx['tmpfilename'], ctx['fragment_index'])
fragment_info_dict = {
'url': frag_url,
'http_headers': headers or info_dict.get('http_headers'),
+ 'request_data': request_data,
}
success = ctx['dl'].download(fragment_filename, fragment_info_dict)
if not success: