From 079a7cfc7191cc141ce09940e06ec897983526c3 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 11 Feb 2022 12:09:03 +0530 Subject: [downloader] Do not use aria2c for non-native `m3u8` Closes #2718 --- yt_dlp/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index ac9e28560..3b232e89c 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -3108,7 +3108,7 @@ class InfoExtractor(object): }) return formats, subtitles - def _parse_html5_media_entries(self, base_url, webpage, video_id, m3u8_id=None, m3u8_entry_protocol='m3u8', mpd_id=None, preference=None, quality=None): + def _parse_html5_media_entries(self, base_url, webpage, video_id, m3u8_id=None, m3u8_entry_protocol='m3u8_native', mpd_id=None, preference=None, quality=None): def absolute_url(item_url): return urljoin(base_url, item_url) -- cgit v1.2.3 From 297e9952b65cfd03aab2d0b97c8cf18243d12578 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 11 Feb 2022 23:30:48 +0530 Subject: [extractor] Allow `http_headers` to be specified for `thumbnails` --- yt_dlp/extractor/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 3b232e89c..37c8be5f6 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -239,6 +239,7 @@ class InfoExtractor(object): * "resolution" (optional, string "{width}x{height}", deprecated) * "filesize" (optional, int) + * "http_headers" (dict) - HTTP headers for the request thumbnail: Full URL to a video thumbnail image. description: Full video description. uploader: Full name of the video uploader. @@ -272,6 +273,8 @@ class InfoExtractor(object): * "url": A URL pointing to the subtitles file It can optionally also have: * "name": Name or description of the subtitles + * http_headers: A dictionary of additional HTTP headers + to add to the request. "ext" will be calculated from URL if missing automatic_captions: Like 'subtitles'; contains automatically generated captions instead of normal subtitles -- cgit v1.2.3