Convert dots to colons when importing existing chapters

This commit is contained in:
Ajay 2023-02-14 18:38:47 -05:00
parent 1d0ac86e5a
commit 1d05c2b3df

View file

@ -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) {