Skip to content

Commit

Permalink
Merge pull request #35 from contagon/last-bug-fix
Browse files Browse the repository at this point in the history
Fix Missing Last Mute
  • Loading branch information
mmguero authored Jun 25, 2024
2 parents cc69d88 + 455cad6 commit d6e5882
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cleanvid/cleanvid.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ def CreateCleanSubAndMuteList(self):
plexDict["markers"][self.plexAutoSkipId] = []
plexDict["mode"][self.plexAutoSkipId] = "volume"

# Append one at the very end of the file to work with pairwise
newTimes = [pysrt.SubRipTime.from_ordinal(subs[-1].end.ordinal).to_time(), None]
newTimestampPairs.append(newTimes)

for timePair, timePairPeek in pairwise(newTimestampPairs):
lineStart = (
(timePair[0].hour * 60.0 * 60.0)
Expand Down

0 comments on commit d6e5882

Please sign in to comment.