mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Fix small segments breaking chapters
This commit is contained in:
@@ -242,7 +242,7 @@ class PreviewBar {
|
||||
|
||||
// Merge overlapping chapters
|
||||
const mergedSegments = segments.filter((segment) => getCategoryActionType(segment.category) !== CategoryActionType.POI
|
||||
&& segment.segment.length === 2)
|
||||
&& segment.segment.length === 2 && this.timeToDecimal(segment.segment[1] - segment.segment[0]) > 0.003)
|
||||
.reduce((acc, curr) => {
|
||||
if (acc.length === 0 || curr.segment[0] > acc[acc.length - 1].segment[1]) {
|
||||
acc.push(curr);
|
||||
|
||||
Reference in New Issue
Block a user