aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-08-23 13:14:22 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-08-23 13:14:22 +0200
commitdf3df7fb6458132a05a4cb64ab37701e7b6a39f2 (patch)
tree2c653b4aa5c71e961408718f73415020de5d067e /youtube_dl
parent9e9c164052e982fa56ad11949f6c5d454c26aa44 (diff)
[youtube] Fix download of subtitles with '--all-subs'
If _extract_subtitles is called the option 'write subtitles' is always true.
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index c4d763ee1..446d53f64 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -534,7 +534,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
sub_format = self._downloader.params.get('subtitlesformat')
if not sub_lang_list: #There was some error, it didn't get the available subtitles
return {}
- if self._downloader.params.get('writesubtitles', False):
+ if self._downloader.params.get('allsubtitles', False):
+ pass
+ else:
if self._downloader.params.get('subtitleslang', False):
sub_lang = self._downloader.params.get('subtitleslang')
elif 'en' in sub_lang_list: