diff options
| author | tassaron | 2022-04-21 01:05:55 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-21 01:05:55 -0400 |
| commit | 1c9f5e4ae685a957a29100e7ade1ac365149c218 (patch) | |
| tree | 80d51ddb665cc5db9b145aa6e4aff5fe5acb45af /src/toolkit | |
| parent | a0291e3fcde739355669e0ca40487f0eb8ee82e4 (diff) | |
fix crash if ffmpeg is not installed (tested on windows 11)
Diffstat (limited to 'src/toolkit')
| -rw-r--r-- | src/toolkit/ffmpeg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/toolkit/ffmpeg.py b/src/toolkit/ffmpeg.py index 0a536bc..3f083ba 100644 --- a/src/toolkit/ffmpeg.py +++ b/src/toolkit/ffmpeg.py @@ -383,6 +383,9 @@ def getAudioDuration(filename): fileInfo = checkOutput(command, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as ex: fileInfo = ex.output + except FileNotFoundError: + # ffmpeg is possibly not installed + return False try: info = fileInfo.decode("utf-8").split('\n') |
