mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
Error message for FFMPEG not installed
This commit is contained in:
parent
8aba2a5612
commit
318b7ebadc
1 changed files with 5 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue