Filter out telemetry from when not needed

This commit is contained in:
Brahim Hadriche committed 2025-09-03 15:40:09 -04:00
1 parent 207f96c882
commit 0c79787161
16 files changed
+63 -56

No files matched your search

@@ -87,7 +87,11 @@ namespace SponsorBlock
url = `${m.sponsorBlockConfig.serverAddress}${SponsorBlock.SKIP_SEGMENT_ENDPOINT}/${hashPrefix}?categories=${categoriesJson}&actionTypes=${actionTypesJson}`
response = HttpClient.Get(url).Cancellation(cancellation).Await()
if not response.IsSuccess()
LogError("GetSkipSegmentsForVideo failed:", response.ErrorMessage())
if response.IsCancelled()
LogErrorNoTelemetry(response.ErrorMessage())
else
LogError(response.ErrorMessage())
end if
return invalid
end if