From 64ce69269755da46882238fac4858ee714dd3d6b Mon Sep 17 00:00:00 2001 From: SG Date: Mon, 28 Aug 2023 07:01:17 -0600 Subject: [PATCH] fix for python 3.9 --- setup.cfg | 2 +- src/monkeyplug/__init__.py | 2 +- src/monkeyplug/monkeyplug.py | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 26923d6..fa4b1d8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = monkeyplug -version = 1.4.0 +version = 1.4.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 034f40d..cd3ef8b 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.4.0" +__version__ = "1.4.1" __author__ = "Seth Grover " __all__ = [] diff --git a/src/monkeyplug/monkeyplug.py b/src/monkeyplug/monkeyplug.py index 3ce098b..4871ba6 100755 --- a/src/monkeyplug/monkeyplug.py +++ b/src/monkeyplug/monkeyplug.py @@ -15,6 +15,7 @@ import wave from urllib.parse import urlparse +from itertools import tee ################################################################################################### CHANNELS_REPLACER = 'CHANNELS' @@ -358,6 +359,10 @@ def CreateIntermediateWAV(self): ffmpegCmd = [ 'ffmpeg', '-nostdin', + '-hide_banner', + '-nostats', + '-loglevel', + 'error', '-y', '-i', self.inputFileSpec, @@ -483,6 +488,10 @@ def EncodeCleanAudio(self): ffmpegCmd = [ 'ffmpeg', '-nostdin', + '-hide_banner', + '-nostats', + '-loglevel', + 'error', '-y', '-i', self.inputFileSpec, @@ -499,6 +508,10 @@ def EncodeCleanAudio(self): ffmpegCmd = [ 'ffmpeg', '-nostdin', + '-hide_banner', + '-nostats', + '-loglevel', + 'error', '-y', '-i', self.inputFileSpec,