mirror of
https://github.com/Steffo99/bbbdl.git
synced 2024-11-23 00:04:19 +00:00
✨ Display an error if ffmpeg is not installed
This commit is contained in:
parent
e0b1e4ad34
commit
ad2f3b9a62
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ def download(input_url, output_file, overwrite=False, verbose_ffmpeg=False, debu
|
|||
if debug:
|
||||
click.echo(" ".join(output.compile()))
|
||||
|
||||
output.run(quiet=not verbose_ffmpeg, overwrite_output=True)
|
||||
try:
|
||||
output.run(quiet=not verbose_ffmpeg, overwrite_output=True)
|
||||
except FileNotFoundError:
|
||||
raise click.ClickException("ffmpeg is not installed!\nPlease download it at https://ffmpeg.org/download.")
|
||||
|
||||
|
||||
@main.command()
|
||||
|
|
Loading…
Reference in a new issue