diff --git a/setup.cfg b/setup.cfg index 6732c31..b7ea52f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = monkeyplug -version = 1.3.0 +version = 1.3.1 author = Seth Grover author_email = mero.mero.guero@gmail.com description = monkeyplug is a little script to mute profanity in audio files. diff --git a/src/monkeyplug/__init__.py b/src/monkeyplug/__init__.py index 968b583..3f7822c 100644 --- a/src/monkeyplug/__init__.py +++ b/src/monkeyplug/__init__.py @@ -1,6 +1,6 @@ """monkeyplug is a little script to mute profanity in audio files.""" -__version__ = "1.3.0" +__version__ = "1.3.1" __author__ = "Seth Grover " __all__ = [] diff --git a/src/monkeyplug/monkeyplug.py b/src/monkeyplug/monkeyplug.py index bba69c8..d6afa41 100755 --- a/src/monkeyplug/monkeyplug.py +++ b/src/monkeyplug/monkeyplug.py @@ -8,6 +8,7 @@ import mutagen import os import requests +import shutil import sys import vosk import wave @@ -477,10 +478,11 @@ def EncodeCleanAudio(self): raise ValueError(f"Could not process {self.inputFileSpec}") SetMonkeyplugTag(self.outputFileSpec, debug=self.debug) - return self.outputFileSpec else: - return self.inputFileSpec + shutil.copyfile(self.inputFileSpec, self.outputFileSpec) + + return self.outputFileSpec #################################################################################