diff options
author | Ajay <[email protected]> | 2023-03-20 23:10:13 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-03-20 23:10:13 -0400 |
commit | f6a42a790887b23cef203c9f7b2ab8e08c0f3174 (patch) | |
tree | cec6604722dda2a48b06ef089a9dc012906a7835 | |
parent | 3ddfc2f0ddbed38a9bcb6d1967ca710409f302d3 (diff) | |
download | SponsorBlock-f6a42a790887b23cef203c9f7b2ab8e08c0f3174.tar.gz SponsorBlock-f6a42a790887b23cef203c9f7b2ab8e08c0f3174.zip |
Fix manual skips after autoskips when inside a chapter
-rw-r--r-- | src/content.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index b795218e..a10cce48 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1461,7 +1461,8 @@ function getStartTimes(sponsorTimes: SponsorTime[], includeIntersectingSegments: const shouldIncludeTime = (segment: ScheduledTime ) => (minimum === undefined || ((includeNonIntersectingSegments && segment.scheduledTime >= minimum) - || (includeIntersectingSegments && segment.scheduledTime < minimum && segment.segment[1] > minimum))) + || (includeIntersectingSegments && segment.scheduledTime < minimum + && segment.segment[1] > minimum && shouldSkip(segment)))) // Only include intersecting skippable segments && (!hideHiddenSponsors || segment.hidden === SponsorHideType.Visible) && segment.segment.length === 2 && segment.actionType !== ActionType.Poi; |