summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-05-21 05:09:16 +0600
committerSergey M․ <[email protected]>2016-05-21 05:09:16 +0600
commitc8602b2f9bcdda00398b2c54db4c1be85b75ce39 (patch)
tree5bdff148690d897c9422ff290ea395880b4e73d7
parentb219f5e51be520b2e23acd1ec08735fc733f9619 (diff)
downloadyoutube-dl-c8602b2f9bcdda00398b2c54db4c1be85b75ce39.tar.gz
youtube-dl-c8602b2f9bcdda00398b2c54db4c1be85b75ce39.zip
[nrk] Unquote subtitles' URLs
-rw-r--r--youtube_dl/extractor/nrk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py
index 7532f40c1..486e086bb 100644
--- 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,