From bd92fed0d02348de9820de56b2be094e854595ee Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 9 Jul 2026 08:37:59 -0400 Subject: [PATCH] post live dvr telemetry tweak --- .../Services/Innertube/PlayerEndpoint.bs | 2 +- .../Services/Innertube/PostLiveDvrInfo.bs | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs index 61ff79e0..9a47017c 100644 --- a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs +++ b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs @@ -191,7 +191,7 @@ namespace Innertube if isPostLiveDvr LogDebug("Fetching Post-Live DVR info") - GetPostLiveDvrInfo(parsedResponse, adaptiveFormats, playerRequest.cpn, client, cancellation, payload) + GetPostLiveDvrInfo(parsedResponse, adaptiveFormats, playerRequest.cpn, client, cancellation) end if if isOTF diff --git a/playlet-lib/src/components/Services/Innertube/PostLiveDvrInfo.bs b/playlet-lib/src/components/Services/Innertube/PostLiveDvrInfo.bs index ad45580a..07cbe3ec 100644 --- a/playlet-lib/src/components/Services/Innertube/PostLiveDvrInfo.bs +++ b/playlet-lib/src/components/Services/Innertube/PostLiveDvrInfo.bs @@ -5,7 +5,7 @@ import "pkg:/source/utils/UrlUtils.bs" namespace Innertube - function GetPostLiveDvrInfo(parsedResponse as object, adaptiveFormats as object, cpn as dynamic, client as Innertube.ClientType, cancellation as object, playerResponse as object) as void + function GetPostLiveDvrInfo(parsedResponse as object, adaptiveFormats as object, cpn as dynamic, client as Innertube.ClientType, cancellation as object) as void if adaptiveFormats.Count() = 0 LogWarn("GetPostLiveDvrInfo: No adaptive formats available") return @@ -38,19 +38,11 @@ namespace Innertube fingerprint: ["GetPostLiveDvrInfo: sq=0 fallback recovered"] }) else - ' Stuck: neither header path has the head. Attach the full /player response - ' so a fix is findable from telemetry alone - lengthSeconds + targetDurationSec - ' approximate count/duration today, and any other usable field is there too. - ' The blob folds into Sentry extra, keeping the message lean. + ' Warning, not error: a known transport-failure tail where playback fails regardless. LogTelemetryEvent({ - level: "error" + level: "warning" message: `GetPostLiveDvrInfo: both no-sq and sq=0 missing head\n${diagnostics}` fingerprint: ["GetPostLiveDvrInfo: both no-sq and sq=0 missing head"] - attachments: [{ - filename: "player_response.json" - content_type: "application/json" - data: FormatJson(playerResponse) - }] }) return end if