aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorbashonly <bashonly@protonmail.com>2024-06-03 11:22:49 -0500
committerbashonly <88596187+bashonly@users.noreply.github.com>2024-06-15 18:38:02 -0500
commitca8885edd93bdf8912af6c22ee335b6222cb9ba9 (patch)
treed2bbc1b981e94f9deda15d62a26de6d572d10a29 /yt_dlp/extractor/common.py
parent4093eb1fcc29a0e2aea9adfcba479787d9ae0c0c (diff)
[fd/hls] Apply `extra_param_to_key_url` from info dict
Authored by: bashonly
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 2799747ec..e5efd08b4 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -234,7 +234,14 @@ class InfoExtractor:
'maybe' if the format may have DRM and has to be tested before download.
* extra_param_to_segment_url A query string to append to each
fragment's URL, or to update each existing query string
- with. Only applied by the native HLS/DASH downloaders.
+ with. If it is an HLS stream with an AES-128 decryption key,
+ the query paramaters will be passed to the key URI as well,
+ unless there is an `extra_param_to_key_url` given,
+ or unless an external key URI is provided via `hls_aes`.
+ Only applied by the native HLS/DASH downloaders.
+ * extra_param_to_key_url A query string to append to the URL
+ of the format's HLS AES-128 decryption key.
+ Only applied by the native HLS downloader.
* hls_aes A dictionary of HLS AES-128 decryption information
used by the native HLS downloader to override the
values in the media playlist when an '#EXT-X-KEY' tag