Better warning when requested subs format not found (#9873)

Closes #9760
Authored by: DaPotato69
This commit is contained in:
DaPotato69 2024-05-12 07:11:40 +10:00 committed by GitHub
parent f1f158976e
commit 7e4259dff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3071,7 +3071,7 @@ class YoutubeDL:
f = formats[-1] f = formats[-1]
self.report_warning( self.report_warning(
'No subtitle format found matching "%s" for language %s, ' '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 subs[lang] = f
return subs return subs