mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 13:12:45 +01:00
[youtube] Fix download of subtitles with '--all-subs'
If _extract_subtitles is called the option 'write subtitles' is always true.
This commit is contained in:
parent
9e9c164052
commit
df3df7fb64
@ -534,7 +534,9 @@ def _extract_subtitles(self, video_id):
|
|||||||
sub_format = self._downloader.params.get('subtitlesformat')
|
sub_format = self._downloader.params.get('subtitlesformat')
|
||||||
if not sub_lang_list: #There was some error, it didn't get the available subtitles
|
if not sub_lang_list: #There was some error, it didn't get the available subtitles
|
||||||
return {}
|
return {}
|
||||||
if self._downloader.params.get('writesubtitles', False):
|
if self._downloader.params.get('allsubtitles', False):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
if self._downloader.params.get('subtitleslang', False):
|
if self._downloader.params.get('subtitleslang', False):
|
||||||
sub_lang = self._downloader.params.get('subtitleslang')
|
sub_lang = self._downloader.params.get('subtitleslang')
|
||||||
elif 'en' in sub_lang_list:
|
elif 'en' in sub_lang_list:
|
||||||
|
Loading…
Reference in New Issue
Block a user