Skip to content

Commit

Permalink
fix issue with getting channels
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Dec 19, 2023
1 parent 10845c8 commit f7345a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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.5
version = 1.5.6
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.5"
__version__ = "1.5.6"
__author__ = "Seth Grover <[email protected]>"
__all__ = []

Expand Down
8 changes: 7 additions & 1 deletion src/cleanvid/cleanvid.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ def HasAudioMoreThanStereo(vidFileSpec):
)
ffprobeResult = delegator.run(ffprobeCmd, block=True)
if ffprobeResult.return_code == 0:
result = any([int(x) for x in list(set(ffprobeResult.out.split())) if int(x) > 2])
result = any(
[
x
for x in [int(''.join([z for z in y if z.isdigit()])) for y in list(set(ffprobeResult.out.split()))]
if x > 2
]
)
return result


Expand Down

0 comments on commit f7345a9

Please sign in to comment.