A feature-rich command-line audio/video downloader
[youtube] Fix download of subtitles with '--all-subs'
Jaime Marquínez Ferrándizdf3df7fb6458
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex c4d763ee1a..446d53f644 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 subtitlesreturn {}- 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: