diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-05-21 05:09:16 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-05-21 05:09:16 +0600 |
commit | c8602b2f9bcdda00398b2c54db4c1be85b75ce39 (patch) | |
tree | 5bdff148690d897c9422ff290ea395880b4e73d7 | |
parent | b219f5e51be520b2e23acd1ec08735fc733f9619 (diff) |
[nrk] Unquote subtitles' URLs
-rw-r--r-- | youtube_dl/extractor/nrk.py | 4 |
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, |