diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-12 21:05:27 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-12 21:05:27 -0500 |
commit | af4847e22e81d05177f92c712983ab3f2f20184b (patch) | |
tree | 6b749333494ffe379df3e1a060660e4b1afcdf85 /yt_dlp/extractor/common.py | |
parent | c4b763b19f54ed5dfc2fd408adb9ed74126f6740 (diff) | |
parent | 29448350808619262d6a9ddd393a2c28df1720fe (diff) | |
download | hypervideo-pre-af4847e22e81d05177f92c712983ab3f2f20184b.tar.lz hypervideo-pre-af4847e22e81d05177f92c712983ab3f2f20184b.tar.xz hypervideo-pre-af4847e22e81d05177f92c712983ab3f2f20184b.zip |
updated from upstream | 12/02/2022 at 21:05
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index ac9e28560..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 @@ -3108,7 +3111,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) |