diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-19 20:08:44 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-19 20:14:44 +0100 |
commit | 22feed08a1984d5c56b79b7322fe576d0d7bbbe5 (patch) | |
tree | 0e24aab8dc7a8a4768a238d5b83ceea60cc3ac58 /youtube_dl/extractor/nrk.py | |
parent | 942b8ca3bee90e13e0d058c03248670be1a9991c (diff) |
[common] remove unwanted query params from unsigned akamai manifest URLs
Diffstat (limited to 'youtube_dl/extractor/nrk.py')
-rw-r--r-- | youtube_dl/extractor/nrk.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py index fdf2d7407..b545f291b 100644 --- a/youtube_dl/extractor/nrk.py +++ b/youtube_dl/extractor/nrk.py @@ -33,8 +33,7 @@ class NRKBaseIE(InfoExtractor): def _extract_nrk_formats(self, asset_url, video_id): if re.match(r'https?://[^/]+\.akamaihd\.net/i/', asset_url): - return self._extract_akamai_formats( - re.sub(r'(?:b=\d+-\d+|__a__=off)&?', '', asset_url), video_id) + return self._extract_akamai_formats(asset_url, video_id) asset_url = re.sub(r'(?:bw_(?:low|high)=\d+|no_audio_only)&?', '', asset_url) formats = self._extract_m3u8_formats( asset_url, video_id, 'mp4', 'm3u8_native', fatal=False) |