Browse Source

[nrk] Unquote subtitles' URLs

totalwebcasting
Sergey M․ 9 years ago
parent
commit
c8602b2f9b
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/nrk.py

+ 3
- 1
youtube_dl/extractor/nrk.py View File

@ -55,7 +55,9 @@ class NRKBaseIE(InfoExtractor):
for subtitle in ('webVtt', 'timedText'): for subtitle in ('webVtt', 'timedText'):
subtitle_url = asset.get('%sSubtitlesUrl' % subtitle) subtitle_url = asset.get('%sSubtitlesUrl' % subtitle)
if subtitle_url: if subtitle_url:
subtitles.setdefault('no', []).append({'url': subtitle_url})
subtitles.setdefault('no', []).append({
'url': compat_urllib_parse_unquote(subtitle_url)
})
entries.append({ entries.append({
'id': asset.get('carrierId') or entry_id, 'id': asset.get('carrierId') or entry_id,
'title': entry_title, 'title': entry_title,


Loading…
Cancel
Save