aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nrk.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-12-19 20:08:44 +0100
committerRemita Amine <remitamine@gmail.com>2020-12-19 20:14:44 +0100
commit22feed08a1984d5c56b79b7322fe576d0d7bbbe5 (patch)
tree0e24aab8dc7a8a4768a238d5b83ceea60cc3ac58 /youtube_dl/extractor/nrk.py
parent942b8ca3bee90e13e0d058c03248670be1a9991c (diff)
downloadyoutube-dl-22feed08a1984d5c56b79b7322fe576d0d7bbbe5.tar.xz
[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.py3
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)