mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Don't include mutes in time without skips
This commit is contained in:
@@ -1396,12 +1396,12 @@ function updatePreviewBar(): void {
|
||||
|
||||
if (Config.config.showTimeWithSkips) {
|
||||
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
|
||||
.filter(({actionType}) => actionType !== ActionType.Chapter)
|
||||
.filter(({actionType}) => ![ActionType.Mute, ActionType.Chapter].includes(actionType))
|
||||
.map(({segment}) => segment));
|
||||
|
||||
showTimeWithoutSkips(skippedDuration);
|
||||
}
|
||||
|
||||
|
||||
// Update last video id
|
||||
lastPreviewBarUpdate = sponsorVideoID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user