mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-27 10:06:45 +00:00
[YoutubeDL] remove compatiblity with the old subtitles system
This commit is contained in:
parent
80970e531b
commit
b531cfc019
1 changed files with 0 additions and 8 deletions
|
@ -1189,14 +1189,6 @@ class YoutubeDL(object):
|
||||||
if formats is None:
|
if formats is None:
|
||||||
self.report_warning('%s subtitles not available for %s' % (lang, video_id))
|
self.report_warning('%s subtitles not available for %s' % (lang, video_id))
|
||||||
continue
|
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:
|
for ext in formats_preference:
|
||||||
if ext == 'best':
|
if ext == 'best':
|
||||||
f = formats[-1]
|
f = formats[-1]
|
||||||
|
|
Loading…
Reference in a new issue