From 455cad67cc1a0b2e6b22439c4456ce7c8602debc Mon Sep 17 00:00:00 2001 From: Easton Potokar Date: Mon, 24 Jun 2024 20:47:14 -0400 Subject: [PATCH] Fix missing end timestamp --- src/cleanvid/cleanvid.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cleanvid/cleanvid.py b/src/cleanvid/cleanvid.py index 71ecf21..b199ca9 100755 --- a/src/cleanvid/cleanvid.py +++ b/src/cleanvid/cleanvid.py @@ -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)