From 1ada30d5c925f1b0f21d45865240780e4ecd84d7 Mon Sep 17 00:00:00 2001 From: cane Date: Sat, 22 Apr 2023 23:52:41 +0200 Subject: [PATCH] fix(youtube/sponsorblock): Include milliseconds in the voting menu (#362) --- .../integrations/sponsorblock/SponsorBlockUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/sponsorblock/SponsorBlockUtils.java b/app/src/main/java/app/revanced/integrations/sponsorblock/SponsorBlockUtils.java index 6a19c0d3..cea3360f 100644 --- a/app/src/main/java/app/revanced/integrations/sponsorblock/SponsorBlockUtils.java +++ b/app/src/main/java/app/revanced/integrations/sponsorblock/SponsorBlockUtils.java @@ -300,13 +300,13 @@ public class SponsorBlockUtils { final long currentVideoLength = VideoInformation.getCurrentVideoLength(); final String formatPattern; if (currentVideoLength < (10 * 60 * 1000)) { - formatPattern = "m:ss"; // less than 10 minutes + formatPattern = "m:ss.SSS"; // less than 10 minutes } else if (currentVideoLength < (60 * 60 * 1000)) { - formatPattern = "mm:ss"; // less than 1 hour + formatPattern = "mm:ss.SSS"; // less than 1 hour } else if (currentVideoLength < (10 * 60 * 60 * 1000)) { - formatPattern = "H:mm:ss"; // less than 10 hours + formatPattern = "H:mm:ss.SSS"; // less than 10 hours } else { - formatPattern = "HH:mm:ss"; // why is this on YouTube + formatPattern = "HH:mm:ss.SSS"; // why is this on YouTube } voteSegmentTimeFormatter.applyPattern(formatPattern);