From f0d516d194f8e17669246107bd5b303723e8291a Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 4 Sep 2025 20:45:15 -0400 Subject: [PATCH] Capture if user is logged in when LOGIN_REQUIRED --- CHANGELOG.md | 4 +++- .../src/components/Services/Innertube/PlayerEndpoint.bs | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1eb407f..45854e2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing worth mentioning yet. +### Fixed + +- Various telemetry issues ## [0.41.4] - 2025-09-04 diff --git a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs index 230fc03f..b8ab10f4 100644 --- a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs +++ b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs @@ -151,6 +151,11 @@ namespace Innertube if status = "LOGIN_REQUIRED" ' TODO:P2 localize errorLines.Push("Hint: Log in to the YouTube app on your phone, then cast the video to Playlet.") + + isLoggedIn = Innertube.ParseIsLoggedIn(payload) + if isLoggedIn + LogError("Video requires login, but user is already logged in!") + end if end if return errorLines.Join(`\n`)