Skip to content

Commit

Permalink
Better warning when requested subs format not found (#9873)
Browse files Browse the repository at this point in the history
Closes #9760
Authored by: DaPotato69
  • Loading branch information
wenbang24 committed May 11, 2024
1 parent f1f1589 commit 7e4259d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7e4259d

Please sign in to comment.