mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-05-11 10:26:23 +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,15 +1414,17 @@ function updatePreviewBar(): void {
|
|||
}
|
||||
|
||||
sponsorTimesSubmitting.forEach((segment) => {
|
||||
previewBarSegments.push({
|
||||
segment: segment.segment as [number, number],
|
||||
category: segment.category,
|
||||
actionType: segment.actionType,
|
||||
unsubmitted: true,
|
||||
showLarger: segment.actionType === ActionType.Poi,
|
||||
description: segment.description,
|
||||
source: segment.source
|
||||
});
|
||||
if (segment.actionType !== ActionType.Chapter || segment.segment.length > 1) {
|
||||
previewBarSegments.push({
|
||||
segment: segment.segment as [number, number],
|
||||
category: segment.category,
|
||||
actionType: segment.actionType,
|
||||
unsubmitted: true,
|
||||
showLarger: segment.actionType === ActionType.Poi,
|
||||
description: segment.description,
|
||||
source: segment.source
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), getVideoDuration())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue