mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Don't include chapters in time without skips
This commit is contained in:
@@ -1259,7 +1259,9 @@ function updatePreviewBar(): void {
|
|||||||
updateActiveSegment(video.currentTime);
|
updateActiveSegment(video.currentTime);
|
||||||
|
|
||||||
if (Config.config.showTimeWithSkips) {
|
if (Config.config.showTimeWithSkips) {
|
||||||
const skippedDuration = utils.getTimestampsDuration(previewBarSegments.map(({segment}) => segment));
|
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
|
||||||
|
.filter(({actionType}) => actionType !== ActionType.Chapter)
|
||||||
|
.map(({segment}) => segment));
|
||||||
|
|
||||||
showTimeWithoutSkips(skippedDuration);
|
showTimeWithoutSkips(skippedDuration);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user