aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-23 16:12:35 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-23 16:12:35 +0100
commitb531cfc019576b682f930bd269f68eb87cfd5abf (patch)
treef6d9b7c95e4ff642cb145f7e4e5dd5221279d099
parent80970e531bd377e1952ac358e7e345cfbf23593d (diff)
[YoutubeDL] remove compatiblity with the old subtitles system
-rwxr-xr-xyoutube_dl/YoutubeDL.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 7319323e5..70b364c9b 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,
- }
- continue
for ext in formats_preference:
if ext == 'best':
f = formats[-1]