diff options
author | Ajay <[email protected]> | 2024-01-23 14:20:24 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-01-23 14:20:24 -0500 |
commit | 985910cbf63cf7ab548853e0dc525e9eeda0f088 (patch) | |
tree | 88c3c21b50395589803913c3512bc8e53d67985d | |
parent | feae86f6eaa4619d16d74b48fdfbbc2f09f336ee (diff) | |
download | SponsorBlock-985910cbf63cf7ab548853e0dc525e9eeda0f088.tar.gz SponsorBlock-985910cbf63cf7ab548853e0dc525e9eeda0f088.zip |
Count previewed unsubmitted segments previewed manually
-rw-r--r-- | src/content.ts | 3 |
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; } } } |