add option for all subtitles

This commit is contained in:
Antonio J. Delgado 2025-08-10 12:19:18 +03:00
parent fccb5ec955
commit 69e64bad83

View file

@ -283,6 +283,9 @@ class GetYoutubeVideos:
if not video_info:
break
if video_info['subtitles']:
if self.config['subtitle_langs'] == 'all':
downloadable_subtitles = video_info['subtitles']
else:
for subtitle in self.config['subtitle_langs']:
if subtitle in video_info['subtitles']:
downloadable_subtitles.append(subtitle)