From df3df7fb6458132a05a4cb64ab37701e7b6a39f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Fri, 23 Aug 2013 13:14:22 +0200 Subject: [PATCH] [youtube] Fix download of subtitles with '--all-subs' If _extract_subtitles is called the option 'write subtitles' is always true. --- youtube_dl/extractor/youtube.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ def _extract_subtitles(self, video_id): 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: