diff --git a/src/utils/pageUtils.ts b/src/utils/pageUtils.ts index ff25cac6..db18aae7 100644 --- a/src/utils/pageUtils.ts +++ b/src/utils/pageUtils.ts @@ -79,7 +79,7 @@ export function getExistingChapters(currentVideoID: VideoID, duration: number): const description = link.querySelector("#details h4") as HTMLElement; if (timeElement && description?.innerText?.length > 0 && link.getAttribute("href")?.includes(currentVideoID)) { const time = GenericUtils.getFormattedTimeToSeconds(timeElement.innerText); - if (!time) return []; + if (time === null) return []; if (lastSegment) { lastSegment.segment[1] = time;