A feature-rich command-line audio/video downloader
[YoutubeDL] remove compatiblity with the old subtitles system
Jaime Marquínez Ferrándizb531cfc01957
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex 7319323e59..70b364c9bb 100755--- 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 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,- }- continuefor ext in formats_preference:if ext == 'best':f = formats[-1]