mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Don't show multiple skip notices after skipping highlight
This commit is contained in:
@@ -572,7 +572,7 @@ function setupVideoListeners() {
|
|||||||
utils.getCategoryActionType(segment.category) === CategoryActionType.POI &&
|
utils.getCategoryActionType(segment.category) === CategoryActionType.POI &&
|
||||||
video.currentTime - segment.segment[0] > 0 &&
|
video.currentTime - segment.segment[0] > 0 &&
|
||||||
video.currentTime - segment.segment[0] < video.duration * 0.006); // Approximate size on preview bar
|
video.currentTime - segment.segment[0] < video.duration * 0.006); // Approximate size on preview bar
|
||||||
if (currentPoiSegment) {
|
if (currentPoiSegment && !skipNotices.some((notice) => notice.segments.some((s) => s.UUID === currentPoiSegment.UUID))) {
|
||||||
skipToTime({
|
skipToTime({
|
||||||
v: video,
|
v: video,
|
||||||
skipTime: currentPoiSegment.segment,
|
skipTime: currentPoiSegment.segment,
|
||||||
|
|||||||
Reference in New Issue
Block a user