mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Don't filter segments
This commit is contained in:
@@ -848,12 +848,7 @@ function updatePreviewBar(): void {
|
|||||||
previewBar.set(previewBarSegments, video.duration)
|
previewBar.set(previewBarSegments, video.duration)
|
||||||
|
|
||||||
if (Config.config.showTimeWithSkips) {
|
if (Config.config.showTimeWithSkips) {
|
||||||
const skippedSegments = previewBarSegments.filter((segment) => {
|
const skippedDuration = utils.getTimestampsDuration(previewBarSegments.map(({segment}) => segment));
|
||||||
// Count the segment only if the category is autoskipped
|
|
||||||
return utils.getCategorySelection(segment.category)?.option === CategorySkipOption.AutoSkip;
|
|
||||||
});
|
|
||||||
|
|
||||||
const skippedDuration = utils.getTimestampsDuration(skippedSegments.map(({segment}) => segment));
|
|
||||||
|
|
||||||
showTimeWithoutSkips(skippedDuration);
|
showTimeWithoutSkips(skippedDuration);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user