aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-01-23 14:20:24 -0500
committerAjay <[email protected]>2024-01-23 14:20:24 -0500
commit985910cbf63cf7ab548853e0dc525e9eeda0f088 (patch)
tree88c3c21b50395589803913c3512bc8e53d67985d
parentfeae86f6eaa4619d16d74b48fdfbbc2f09f336ee (diff)
downloadSponsorBlock-985910cbf63cf7ab548853e0dc525e9eeda0f088.tar.gz
SponsorBlock-985910cbf63cf7ab548853e0dc525e9eeda0f088.zip
Count previewed unsubmitted segments previewed manually
-rw-r--r--src/content.ts3
1 files changed, 3 insertions, 0 deletions
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;
}
}
}