1
Fork 0
mirror of https://github.com/Steffo99/bbbdl.git synced 2024-10-16 06:17:29 +00:00

Display an error if ffmpeg is not installed

This commit is contained in:
Steffo 2020-12-04 17:24:50 +01:00
parent e0b1e4ad34
commit ad2f3b9a62

View file

@ -37,7 +37,10 @@ def download(input_url, output_file, overwrite=False, verbose_ffmpeg=False, debu
if debug:
click.echo(" ".join(output.compile()))
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()