1
Fork 0
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:
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: if debug:
click.echo(" ".join(output.compile())) 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() @main.command()