Add Telemetry (#704)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-08-29 15:22:57 -04:00
1 parent 92789b0566
commit b657664546
14 files changed
+186 -2

No files matched your search

@@ -105,6 +105,8 @@ function ExecuteJob() as void
if metadata.liveNow = true
contentNode.Live = true
end if
m.global.telemetry.logInfo = "[VideoContentJob] success"
end function
function CreateStreamUrls(metadata as object, service as Invidious.InvidiousService, preferences as object, backend as string, playletServerPort as integer) as object
@@ -431,6 +431,7 @@ function OnVideoPlayerStateChange() as void
' This is to reduce false positives, as we do not want retry another link if the first link is working fine.
if state = "playing" and not m.videoPlayingSuccess
LogInfo(`Now playing video ${content.url}`)
m.global.telemetry.logInfo = "[VideoPlayer] state=playing"
m.videoPlayingSuccess = true
end if