Skip to content

Commit

Permalink
#18, make pad a float
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Oct 2, 2023
1 parent 3a447e0 commit ae06f2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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 = cleanvid
version = 1.5.3
version = 1.5.4
author = Seth Grover
author_email = [email protected]
description = cleanvid is a little script to mute profanity in video files.
Expand Down
2 changes: 1 addition & 1 deletion src/cleanvid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""cleanvid is a little script to mute profanity in video files."""

__version__ = "1.5.3"
__version__ = "1.5.4"
__author__ = "Seth Grover <[email protected]>"
__all__ = []

Expand Down
6 changes: 3 additions & 3 deletions src/cleanvid/cleanvid.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __init__(
oVidFileSpec,
oSubsFileSpec,
iSwearsFileSpec,
swearsPadSec=0,
swearsPadSec=0.0,
embedSubs=False,
fullSubs=False,
subsOnly=False,
Expand Down Expand Up @@ -248,7 +248,7 @@ def __init__(
if os.path.isfile(self.cleanSubsFileSpec):
os.remove(self.cleanSubsFileSpec)

self.swearsPadMillisec = swearsPadSec * 1000
self.swearsPadMillisec = round(swearsPadSec * 1000.0)
self.embedSubs = embedSubs
self.fullSubs = fullSubs
self.subsOnly = subsOnly or edl or (plexAutoSkipJson and plexAutoSkipId)
Expand Down Expand Up @@ -576,7 +576,7 @@ def RunCleanvid():
metavar='<language>',
)
parser.add_argument(
'-p', '--pad', help='pad (seconds) around profanity', metavar='<int>', dest="pad", type=int, default=0
'-p', '--pad', help='pad (seconds) around profanity', metavar='<int>', dest="pad", type=float, default=0.0
)
parser.add_argument(
'-e',
Expand Down

0 comments on commit ae06f2b

Please sign in to comment.