From 1d05c2b3dfc15619a02f0d9333be8051cde60acb Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 14 Feb 2023 18:38:47 -0500 Subject: [PATCH] Convert dots to colons when importing existing chapters --- 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 c6b5b92d..5462fde4 100644 --- a/src/utils/pageUtils.ts +++ b/src/utils/pageUtils.ts @@ -63,7 +63,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); + const time = getFormattedTimeToSeconds(timeElement.innerText.replace(".", ":")); if (time === null) return []; if (lastSegment) {