mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-30 20:34:40 +01:00
[ie/nrk] Extract more formats (#12069)
Closes #12053 Authored by: hexahigh
This commit is contained in:
parent
a567f97b62
commit
89198bb23b
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue