From 8dffff5f54b88beacc8d01912c562e472ec6b4d6 Mon Sep 17 00:00:00 2001 From: Anjok07 <68268275+Anjok07@users.noreply.github.com> Date: Fri, 30 Dec 2022 04:40:28 -0600 Subject: [PATCH] Update separate.py --- separate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/separate.py b/separate.py index 669f83d..e0231ad 100644 --- a/separate.py +++ b/separate.py @@ -913,7 +913,7 @@ def save_format(audio_path, save_format, mp3_bit_set): if not save_format == WAV: - if not OPERATING_SYSTEM == 'Windows': + if OPERATING_SYSTEM == 'Darwin': FFMPEG_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'ffmpeg') pydub.AudioSegment.converter = FFMPEG_PATH @@ -930,4 +930,4 @@ def save_format(audio_path, save_format, mp3_bit_set): try: os.remove(audio_path) except Exception as e: - print(e) \ No newline at end of file + print(e)