aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-21 05:09:16 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-21 05:09:16 +0600
commitc8602b2f9bcdda00398b2c54db4c1be85b75ce39 (patch)
tree5bdff148690d897c9422ff290ea395880b4e73d7 /youtube_dl
parentb219f5e51be520b2e23acd1ec08735fc733f9619 (diff)
[nrk] Unquote subtitles' URLs
Diffstat (limited to 'youtube_dl')
-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,