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)