diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e796ac..7573d7c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ 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). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.41.2] - 2025-09-03 ### Fixed diff --git a/playlet-lib/src/components/Services/Innertube/InnertubeService.bs b/playlet-lib/src/components/Services/Innertube/InnertubeService.bs index 2b432fde..525b1033 100644 --- a/playlet-lib/src/components/Services/Innertube/InnertubeService.bs +++ b/playlet-lib/src/components/Services/Innertube/InnertubeService.bs @@ -134,7 +134,11 @@ namespace InnertubeService end if if fetchNext - parsedResponse = Innertube.ParseInnertubeNextResponse(nextResponse.Json(), parsedResponse) + if nextResponse.IsSuccess() + parsedResponse = Innertube.ParseInnertubeNextResponse(nextResponse.Json(), parsedResponse) + else + LogWarn(nextResponse.ErrorMessage()) + end if end if ' If for some reason we missed the videoId, add it back diff --git a/playlet-lib/src/components/Services/Innertube/NodesParser.bs b/playlet-lib/src/components/Services/Innertube/NodesParser.bs index c8640f7c..5c844905 100644 --- a/playlet-lib/src/components/Services/Innertube/NodesParser.bs +++ b/playlet-lib/src/components/Services/Innertube/NodesParser.bs @@ -138,6 +138,10 @@ namespace Innertube "videoMetadataCarouselViewModel": ParseNotImplemented ' A link to some content, like a wikipedia article. "infoPanelContentRenderer": ParseNotImplemented + ' {"blockCurrentSession":true,"error":"SUPEX_ONBOARDING_ERROR_KIDS_ONLY"} + "supexOnboardingErrorCommand": ParseNotImplemented + ' Suicide & crisis lifeline, shown on sensitive content + "emergencyOneboxRenderer": ParseNotImplemented "ticketShelfRenderer": ParseNotImplemented "videoSurveyShelfRenderer": ParseNotImplemented "searchBarRenderer": ParseNotImplemented @@ -1730,16 +1734,20 @@ namespace Innertube function Warning(message as string, nodeData as object) as void nodeDataString = FormatJson(nodeData) - fullMessage = message + `\n` + nodeDataString m.noTelemetry = true - LogWarn(fullMessage) + LogWarn(message + `\n` + nodeDataString) m.noTelemetry = false m.global.telemetry.LogEvent = { level: "error" - message: fullMessage + message: message fingerprint: message + attachments: [{ + filename: "node_data.json" + content_type: "application/json" + data: nodeDataString + }] } end function end namespace diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs index 467f683d..8156c156 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs @@ -64,6 +64,7 @@ class LoungeApi 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_GRACEFUL_RECONNECT] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_NOW_PLAYING] = m.HandleGetPlayingNow commandHandlers[COMMAND_TYPE_SESSION_ID] = m.HandleSessionId diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs index 8b716815..9c70935d 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs @@ -26,6 +26,7 @@ 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" +const COMMAND_TYPE_GRACEFUL_RECONNECT = "gracefulReconnect" ' Special commands const COMMAND_TYPE_SESSION_ID = "c" const COMMAND_TYPE_G_SESSION_ID = "S"