From 985910cbf63cf7ab548853e0dc525e9eeda0f088 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 23 Jan 2024 14:20:24 -0500 Subject: [PATCH] Count previewed unsubmitted segments previewed manually --- src/content.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content.ts b/src/content.ts index 6d656e27..bf39ed89 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1608,6 +1608,9 @@ function sendTelemetryAndCount(skippingSegments: SponsorTime[], secondsSkipped: } if (fullSkip) asyncRequestToServer("POST", "/api/viewedVideoSponsorTime?UUID=" + segment.UUID); + } else if (!previewedSegment && sponsorTimesSubmitting.some((s) => s.segment === segment.segment)) { + // Count that as a previewed segment + previewedSegment = true; } } }