Error message for FFMPEG not installed

This commit is contained in:
Nathan Thomas 2023-11-29 09:54:22 -08:00
parent 8aba2a5612
commit 318b7ebadc

View file

@ -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}"