Explorar el Código

[nrk] Unquote subtitles' URLs

Sergey M․ hace 9 años
padre
commit
c8602b2f9b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      youtube_dl/extractor/nrk.py

+ 3 - 1
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,