projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0344207
)
[YoutubeDL] Fix sanitizing subtitles' url
author
Sergey M․
<dstftw@gmail.com>
Sun, 27 Mar 2016 21:13:39 +0000
(
03:13
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 27 Mar 2016 21:13:39 +0000
(
03:13
+0600)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 53a36c145dc775b876cca41e732b7f7b312ec0a1..d7aa951ff39fc54238c5759ee5a57f2c70d9de0d 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-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()