diff --git a/playlet-lib/src/components/Services/Innertube/SessionData.bs b/playlet-lib/src/components/Services/Innertube/SessionData.bs index ed5b3536..6483fe1f 100644 --- a/playlet-lib/src/components/Services/Innertube/SessionData.bs +++ b/playlet-lib/src/components/Services/Innertube/SessionData.bs @@ -17,6 +17,9 @@ namespace Innertube if sessionData = invalid or not IsInt(sessionData.timestamp) return false end if + if StringUtils.IsNullOrEmpty(sessionData.visitorData) + return false + end if nowSeconds = TimeUtils.Now().AsSeconds() return nowSeconds - sessionData.timestamp <= INNERTUBE_VISITOR_DATA_LIFESPAN_SECONDS end function diff --git a/playlet-lib/src/components/Telemetry/Telemetry.bs b/playlet-lib/src/components/Telemetry/Telemetry.bs index 4bfbfd0a..3a1a56cf 100644 --- a/playlet-lib/src/components/Telemetry/Telemetry.bs +++ b/playlet-lib/src/components/Telemetry/Telemetry.bs @@ -48,14 +48,14 @@ function TelemetryLoop() as void m.dist = GetDist(m.tags) m.userId = GetUserId() - ReportSessionStart() - ReportLastExitCrash() - m.top.observeField("LogInfo", msgPort) m.top.observeField("LogWarn", msgPort) m.top.observeField("LogError", msgPort) m.top.observeField("LogEvent", msgPort) + ReportSessionStart() + ReportLastExitCrash() + #if SUPPORTS_BATCHING debouceMs = 2000 debounceCountLimit = 20