commit c8602b2f9bcdda00398b2c54db4c1be85b75ce39
parent b219f5e51be520b2e23acd1ec08735fc733f9619
Author: Sergey M․ <dstftw@gmail.com>
Date: Sat, 21 May 2016 05:09:16 +0600
[nrk] Unquote subtitles' URLs
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py
@@ -55,7 +55,9 @@ class NRKBaseIE(InfoExtractor):
for subtitle in ('webVtt', 'timedText'):
subtitle_url = asset.get('%sSubtitlesUrl' % subtitle)
if subtitle_url:
- subtitles.setdefault('no', []).append({'url': subtitle_url})
+ subtitles.setdefault('no', []).append({
+ 'url': compat_urllib_parse_unquote(subtitle_url)
+ })
entries.append({
'id': asset.get('carrierId') or entry_id,
'title': entry_title,