mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-05-12 19:06:17 +02:00
Fix issue with unfinished chapter submissions causing the seek bar to look wrong
This commit is contained in:
parent
abbab887c6
commit
c22a763da6
1 changed files with 11 additions and 9 deletions
|
@ -1414,6 +1414,7 @@ function updatePreviewBar(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
sponsorTimesSubmitting.forEach((segment) => {
|
sponsorTimesSubmitting.forEach((segment) => {
|
||||||
|
if (segment.actionType !== ActionType.Chapter || segment.segment.length > 1) {
|
||||||
previewBarSegments.push({
|
previewBarSegments.push({
|
||||||
segment: segment.segment as [number, number],
|
segment: segment.segment as [number, number],
|
||||||
category: segment.category,
|
category: segment.category,
|
||||||
|
@ -1423,6 +1424,7 @@ function updatePreviewBar(): void {
|
||||||
description: segment.description,
|
description: segment.description,
|
||||||
source: segment.source
|
source: segment.source
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), getVideoDuration())
|
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), getVideoDuration())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue