1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[nrk] Unquote subtitles' URLs

This commit is contained in:
Sergey M․ 2016-05-21 05:09:16 +06:00
parent b219f5e51b
commit c8602b2f9b
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -55,7 +55,9 @@ class NRKBaseIE(InfoExtractor):
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,