From: DaPotato69 Date: Sat, 11 May 2024 21:11:40 +0000 (+1000) Subject: Better warning when requested subs format not found (#9873) X-Git-Tag: 2024.05.26~54 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/7e4259dff0b681a3f0e8a930799ce0394328c86e Better warning when requested subs format not found (#9873) Closes #9760 Authored by: DaPotato69 --- diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index e0d58f0f4..2c6f695d0 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3071,7 +3071,7 @@ def process_subtitles(self, video_id, normal_subtitles, automatic_captions): f = formats[-1] self.report_warning( 'No subtitle format found matching "%s" for language %s, ' - 'using %s' % (formats_query, lang, f['ext'])) + 'using %s. Use --list-subs for a list of available subtitles' % (formats_query, lang, f['ext'])) subs[lang] = f return subs