aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoof <97455552+hexahigh@users.noreply.github.com>2025-01-19 14:13:40 +0100
committerGitHub <noreply@github.com>2025-01-19 14:13:40 +0100
commit89198bb23b4d03e0473ac408bfb50d67c2f71165 (patch)
tree7c61a66fd1864a4149ee0485bfe6aab0c23c8963
parenta567f97b62ae9f6d6f5a9376c361512ab8dceda2 (diff)
[ie/nrk] Extract more formats (#12069)
Closes #12053 Authored by: hexahigh
-rw-r--r--yt_dlp/extractor/nrk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/extractor/nrk.py b/yt_dlp/extractor/nrk.py
index 658ae5f91..efc4a1734 100644
--- a/yt_dlp/extractor/nrk.py
+++ b/yt_dlp/extractor/nrk.py
@@ -12,6 +12,7 @@ from ..utils import (
parse_iso8601,
str_or_none,
try_get,
+ update_url_query,
url_or_none,
urljoin,
)
@@ -171,6 +172,8 @@ class NRKIE(NRKBaseIE):
format_url = url_or_none(asset.get('url'))
if not format_url:
continue
+ # Remove the 'adap' query parameter
+ format_url = update_url_query(format_url, {'adap': []})
asset_format = (asset.get('format') or '').lower()
if asset_format == 'hls' or determine_ext(format_url) == 'm3u8':
formats.extend(self._extract_nrk_formats(format_url, video_id))