]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[nrk] Unquote subtitles' URLs
authorSergey M․ <dstftw@gmail.com>
Fri, 20 May 2016 23:09:16 +0000 (05:09 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 20 May 2016 23:09:16 +0000 (05:09 +0600)
youtube_dl/extractor/nrk.py

index 7532f40c18e92ca71caaf38620f2e69552a3dce4..486e086bb22d655d2ad5bc9df4aade07c9030816 100644 (file)
@@ -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,