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

+6
View File
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.41.1] - 2025-08-29
### Fixed
- Reduce event count
## [0.41.0] - 2025-08-29
### Added
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet",
"version": "0.41.0",
"version": "0.41.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet",
"version": "0.41.0",
"version": "0.41.1",
"hasInstallScript": true,
"devDependencies": {
"@rokucommunity/bslint": "^0.8.34",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet",
"version": "0.41.0",
"version": "0.41.1",
"description": "Unofficial YouTube client for Roku",
"devDependencies": {
"@rokucommunity/bslint": "^0.8.34",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-app",
"version": "0.41.0",
"version": "0.41.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-app",
"version": "0.41.0"
"version": "0.41.1"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-app",
"version": "0.41.0",
"version": "0.41.1",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-app",
+1 -1
View File
@@ -3,7 +3,7 @@ title=Playlet
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=41
build_version=00000
build_version=00001
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-lib",
"version": "0.41.0",
"version": "0.41.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-lib",
"version": "0.41.0"
"version": "0.41.1"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-lib",
"version": "0.41.0",
"version": "0.41.1",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-lib",
@@ -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)
+1 -1
View File
@@ -3,7 +3,7 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=41
build_version=00000
build_version=00001
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-web",
"version": "0.41.0",
"version": "0.41.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet-web",
"version": "0.41.0",
"version": "0.41.1",
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.1.3",
"@tailwindcss/typography": "^0.5.16",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-web",
"version": "0.41.0",
"version": "0.41.1",
"type": "module",
"scripts": {
"dev": "vite",