mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 01:25:06 +00:00
[nrk] Unquote subtitles' URLs
This commit is contained in:
parent
b219f5e51b
commit
c8602b2f9b
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ def video_id_and_title(idx):
|
||||||
for subtitle in ('webVtt', 'timedText'):
|
for subtitle in ('webVtt', 'timedText'):
|
||||||
subtitle_url = asset.get('%sSubtitlesUrl' % subtitle)
|
subtitle_url = asset.get('%sSubtitlesUrl' % subtitle)
|
||||||
if subtitle_url:
|
if subtitle_url:
|
||||||
subtitles.setdefault('no', []).append({'url': subtitle_url})
|
subtitles.setdefault('no', []).append({
|
||||||
|
'url': compat_urllib_parse_unquote(subtitle_url)
|
||||||
|
})
|
||||||
entries.append({
|
entries.append({
|
||||||
'id': asset.get('carrierId') or entry_id,
|
'id': asset.get('carrierId') or entry_id,
|
||||||
'title': entry_title,
|
'title': entry_title,
|
||||||
|
|
Loading…
Reference in a new issue