projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[YoutubeDL] remove compatiblity with the old subtitles system
[youtube-dl]
/
youtube_dl
/
YoutubeDL.py
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 7319323e59ae34dbcfc5c3101d32fddb1ff46319..70b364c9bb3e90afa063208925e7f2a2501e603a 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-1189,14
+1189,6
@@
class YoutubeDL(object):
if formats is None:
self.report_warning('%s subtitles not available for %s' % (lang, video_id))
continue
if formats is None:
self.report_warning('%s subtitles not available for %s' % (lang, video_id))
continue
- if isinstance(formats, compat_str):
- # TODO: convert all IE with subtitles support to the new format
- # and remove this
- subs[lang] = {
- 'ext': formats_preference[0],
- 'data': formats,
- }
- continue
for ext in formats_preference:
if ext == 'best':
f = formats[-1]
for ext in formats_preference:
if ext == 'best':
f = formats[-1]