mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-02-16 17:07:54 +01:00
Add warning for --audio-format without -x
This commit is contained in:
parent
a90a6b54ee
commit
00447c0e33
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user