From 00447c0e337ed372c31819ff1889222423b9ad99 Mon Sep 17 00:00:00 2001 From: David Heyman Date: Wed, 2 May 2018 21:02:02 -0400 Subject: [PATCH] Add warning for --audio-format without -x --- youtube_dl/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index ba435ea42..949a7f539 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -445,6 +445,13 @@ def _real_main(argv=None): if opts.rm_cachedir: ydl.cache.remove() + # Warn if no-effect args are given + if opts.audioformat and not opts.extractaudio: + ydl.report_warning( + 'You have specified "--audio-format", ' + 'but have not given "--extract-audio". ' + 'Audio will not be extracted.') + # Maybe do nothing if (len(all_urls) < 1) and (opts.load_info_filename is None): if opts.update_self or opts.rm_cachedir: