diff options
author | Ajay Ramachandran <[email protected]> | 2020-12-24 12:43:21 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-12-24 12:43:21 -0500 |
commit | edbbb9022b57884be04c07f3f1dd65e4a3e880c8 (patch) | |
tree | dc2463dc194e2157d7e2a11dc94f1576b421f5b3 | |
parent | 73b81424b1ab6272943242e2e522ce49be710135 (diff) | |
download | SponsorBlock-edbbb9022b57884be04c07f3f1dd65e4a3e880c8.tar.gz SponsorBlock-edbbb9022b57884be04c07f3f1dd65e4a3e880c8.zip |
Don't filter segments
-rw-r--r-- | src/content.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/content.ts b/src/content.ts index 48b5456e..aba53f24 100644 --- a/src/content.ts +++ b/src/content.ts @@ -848,12 +848,7 @@ function updatePreviewBar(): void { previewBar.set(previewBarSegments, video.duration) if (Config.config.showTimeWithSkips) { - const skippedSegments = previewBarSegments.filter((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)); + const skippedDuration = utils.getTimestampsDuration(previewBarSegments.map(({segment}) => segment)); showTimeWithoutSkips(skippedDuration); } |