post live dvr telemetry tweak
This commit is contained in:
1 parent
34c6653877
commit
bd92fed0d0
2 files changed
+4
-12
No files matched your search
@@ -191,7 +191,7 @@ namespace Innertube
|
|||||||
|
|
||||||
if isPostLiveDvr
|
if isPostLiveDvr
|
||||||
LogDebug("Fetching Post-Live DVR info")
|
LogDebug("Fetching Post-Live DVR info")
|
||||||
GetPostLiveDvrInfo(parsedResponse, adaptiveFormats, playerRequest.cpn, client, cancellation, payload)
|
GetPostLiveDvrInfo(parsedResponse, adaptiveFormats, playerRequest.cpn, client, cancellation)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if isOTF
|
if isOTF
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import "pkg:/source/utils/UrlUtils.bs"
|
|||||||
|
|
||||||
namespace Innertube
|
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
|
if adaptiveFormats.Count() = 0
|
||||||
LogWarn("GetPostLiveDvrInfo: No adaptive formats available")
|
LogWarn("GetPostLiveDvrInfo: No adaptive formats available")
|
||||||
return
|
return
|
||||||
@@ -38,19 +38,11 @@ namespace Innertube
|
|||||||
fingerprint: ["GetPostLiveDvrInfo: sq=0 fallback recovered"]
|
fingerprint: ["GetPostLiveDvrInfo: sq=0 fallback recovered"]
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
' Stuck: neither header path has the head. Attach the full /player response
|
' Warning, not error: a known transport-failure tail where playback fails regardless.
|
||||||
' 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.
|
|
||||||
LogTelemetryEvent({
|
LogTelemetryEvent({
|
||||||
level: "error"
|
level: "warning"
|
||||||
message: `GetPostLiveDvrInfo: both no-sq and sq=0 missing head\n${diagnostics}`
|
message: `GetPostLiveDvrInfo: both no-sq and sq=0 missing head\n${diagnostics}`
|
||||||
fingerprint: ["GetPostLiveDvrInfo: both no-sq and sq=0 missing head"]
|
fingerprint: ["GetPostLiveDvrInfo: both no-sq and sq=0 missing head"]
|
||||||
attachments: [{
|
|
||||||
filename: "player_response.json"
|
|
||||||
content_type: "application/json"
|
|
||||||
data: FormatJson(playerResponse)
|
|
||||||
}]
|
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user