From 6585a4e325d89f751fcefbd167cc9f6ba46813a3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 24 May 2023 19:06:38 -0400 Subject: Fix large times when locale uses dots for chapter names Fixes #1757 --- src/utils/pageUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pageUtils.ts b/src/utils/pageUtils.ts index 50ebde30..83291f1d 100644 --- a/src/utils/pageUtils.ts +++ b/src/utils/pageUtils.ts @@ -67,7 +67,7 @@ export function getExistingChapters(currentVideoID: VideoID, duration: number): const timeElement = link.querySelector("#time") as HTMLElement; const description = link.querySelector("#details h4") as HTMLElement; if (timeElement && description?.innerText?.length > 0 && link.getAttribute("href")?.includes(currentVideoID)) { - const time = getFormattedTimeToSeconds(timeElement.innerText.replace(".", ":")); + const time = getFormattedTimeToSeconds(timeElement.innerText.replace(/\./g, ":")); if (time === null) return []; if (lastSegment) { -- cgit v1.2.3