mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
parent
20ab0768df
commit
6585a4e325
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue