From ad419c540d404a91ecbc832d2b7469716bbfa1de Mon Sep 17 00:00:00 2001 From: kikuyan Date: Fri, 13 Aug 2021 11:28:04 +0900 Subject: [PATCH] warn --convert-sub with --skip-download --- youtube_dl/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index e1bd67919..e88a2dc38 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -458,6 +458,10 @@ def _real_main(argv=None): 'You must provide at least one URL.\n' 'Type youtube-dl --help to see a list of all options.') + # Remove this `if` block when PR #9738 is finished + if opts.convertsubtitles and opts.skip_download: + ydl.report_warning('--convert-subs is a post-processing option and doesn\'t work with --skip-download') + try: if opts.load_info_filename is not None: retcode = ydl.download_with_info_file(expand_path(opts.load_info_filename))