Don't show multiple skip notices after skipping highlight

This commit is contained in:
Ajay Ramachandran
2021-08-17 21:45:30 -04:00
parent 56b74d6863
commit 28096e1ba6

View File

@@ -572,7 +572,7 @@ function setupVideoListeners() {
utils.getCategoryActionType(segment.category) === CategoryActionType.POI &&
video.currentTime - segment.segment[0] > 0 &&
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({
v: video,
skipTime: currentPoiSegment.segment,