Reduce event count

This commit is contained in:
Brahim Hadriche committed 2025-08-29 18:18:42 -04:00
1 parent 34adf51ebb
commit b29678ff15
19 files changed
+37 -22

No files matched your search

@@ -192,17 +192,18 @@ class DashManifest
id += 1
end for
storyboardsAdded = false
' https://developer.roku.com/en-ca/docs/developer-program/media-playback/trick-mode/hls-and-dash.md#dash-standard-thumbnail-tiles
for each storyboard in storyboards
interval = ValidInt(storyboard.interval)
if interval = 0
LogWarn("Invalid storyboard interval:", storyboard.interval)
LogInfo("Invalid storyboard interval:", storyboard.interval)
continue for
end if
templateUrl = storyboard.templateUrl
if templateUrl.Instr("$M") = -1
LogWarn("Invalid storyboard url: url does not contain $M:", templateUrl)
LogInfo("Invalid storyboard url: url does not contain $M:", templateUrl)
continue for
end if
@@ -267,8 +268,13 @@ class DashManifest
end if
id += 1
storyboardsAdded = true
end for
if storyboards.Count() > 0 and not storyboardsAdded
LogWarn("No valid storyboards found")
end if
xml.End()
end if
xml.End()
@@ -63,6 +63,7 @@ class LoungeApi
commandHandlers[COMMAND_TYPE_VOICE_COMMAND] = m.HandleIgnoreCommand
commandHandlers[COMMAND_TYPE_ON_USER_ACTIVITY] = m.HandleIgnoreCommand
commandHandlers[COMMAND_TYPE_REMOTE_DISCONNECTED] = m.HandleIgnoreCommand
commandHandlers[COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID] = m.HandleIgnoreCommand
commandHandlers[COMMAND_TYPE_GET_NOW_PLAYING] = m.HandleGetPlayingNow
commandHandlers[COMMAND_TYPE_SESSION_ID] = m.HandleSessionId
@@ -25,6 +25,7 @@ const COMMAND_TYPE_DPAD_COMMAND = "dpadCommand"
const COMMAND_TYPE_VOICE_COMMAND = "voiceCommand"
const COMMAND_TYPE_SET_SUBTITLES = "setSubtitlesTrack"
const COMMAND_TYPE_ON_USER_ACTIVITY = "onUserActivity"
const COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID = "getDiscoveryDeviceId"
' Special commands
const COMMAND_TYPE_SESSION_ID = "c"
const COMMAND_TYPE_G_SESSION_ID = "S"
@@ -42,7 +42,7 @@ namespace Sentry
response = request.Await()
if not response.IsSuccess()
#if DEBUG
LogError("Failed to send event to Sentry:", response.ErrorMessage())
LogInfo("Failed to send event to Sentry:", response.ErrorMessage())
#end if
return
end if
@@ -241,7 +241,11 @@ end function
function HandleFeedLoadErrorDialog(error as object, isCancelled as boolean, rowList as object) as void
error = ErrorUtils.Format(error)
LogError(error)
if isCancelled
LogInfo(error)
else
LogError(error)
end if
rowList.onError = error
if rowList.hasField("dispose") and rowList.dispose
return
@@ -105,8 +105,6 @@ 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,7 +431,6 @@ 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
@@ -165,7 +165,7 @@ namespace Http
if m.socket.eSuccess()
LogDebug(op + " peer closed @" + m.client)
else
LogError(op + " transfer error @" + m.client, m.socket.status())
LogInfo(op + " transfer error @" + m.client, m.socket.status())
end if
m.close = true
m.SetState(Http.HttpConnectionState.DONE)