Skip to content

Commit

Permalink
create outputfile regardless of whether or not force was selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 10, 2022
1 parent ba92b29 commit 715fd48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = monkeyplug
version = 1.3.0
version = 1.3.1
author = Seth Grover
author_email = [email protected]
description = monkeyplug is a little script to mute profanity in audio files.
Expand Down
2 changes: 1 addition & 1 deletion src/monkeyplug/__init__.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
__all__ = []

Expand Down
6 changes: 4 additions & 2 deletions src/monkeyplug/monkeyplug.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import mutagen
import os
import requests
import shutil
import sys
import vosk
import wave
Expand Down Expand Up @@ -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


#################################################################################
Expand Down

0 comments on commit 715fd48

Please sign in to comment.