mirror of
https://github.com/Steffo99/bbbdl.git
synced 2024-11-23 08:14:18 +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:
|
if debug:
|
||||||
click.echo(" ".join(output.compile()))
|
click.echo(" ".join(output.compile()))
|
||||||
|
|
||||||
|
try:
|
||||||
output.run(quiet=not verbose_ffmpeg, overwrite_output=True)
|
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()
|
@main.command()
|
||||||
|
|
Loading…
Reference in a new issue