Browse Source

[YoutubeDL] Fix sanitizing subtitles' url

totalwebcasting
Sergey M․ 9 years ago
parent
commit
33f3040a3e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/YoutubeDL.py

+ 2
- 1
youtube_dl/YoutubeDL.py View File

@ -1265,7 +1265,8 @@ class YoutubeDL(object):
if subtitles:
for _, subtitle in subtitles.items():
for subtitle_format in subtitle:
subtitle_format['url'] = sanitize_url(subtitle_format['url'])
if subtitle_format.get('url'):
subtitle_format['url'] = sanitize_url(subtitle_format['url'])
if 'ext' not in subtitle_format:
subtitle_format['ext'] = determine_ext(subtitle_format['url']).lower()


Loading…
Cancel
Save