From 318b7ebadc2b842270a7f264d87dfb6868972628 Mon Sep 17 00:00:00 2001 From: Nathan Thomas Date: Wed, 29 Nov 2023 09:54:22 -0800 Subject: [PATCH] Error message for FFMPEG not installed --- streamrip/converter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/streamrip/converter.py b/streamrip/converter.py index c99d48a..656f827 100644 --- a/streamrip/converter.py +++ b/streamrip/converter.py @@ -48,7 +48,11 @@ class Converter: :param remove_source: Remove the source file after conversion. :type remove_source: bool """ - logger.debug(locals()) + + if shutil.which("ffmpeg") is None: + raise Exception( + "Could not find FFMPEG executable. Install it to convert audio files." + ) self.filename = filename self.final_fn = f"{os.path.splitext(filename)[0]}.{self.container}"