From daaa2974b8fe5a00443c86ae685ed5460c2f393c Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Tue, 30 Sep 2025 10:32:41 -0400 Subject: [PATCH] credentialTransferTokens should only be used with TV clients --- CHANGELOG.md | 6 ++++++ playlet-lib/src/components/Services/Innertube/Context.bs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efd2124c..cc087e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). +## [Unreleased] + +### Fixed + +- Bug: credentialTransferTokens should only be used with TV clients + ## [0.42.0] - 2025-09-30 ### Added diff --git a/playlet-lib/src/components/Services/Innertube/Context.bs b/playlet-lib/src/components/Services/Innertube/Context.bs index 108bca4a..ff0900b9 100644 --- a/playlet-lib/src/components/Services/Innertube/Context.bs +++ b/playlet-lib/src/components/Services/Innertube/Context.bs @@ -59,6 +59,7 @@ namespace Innertube videoId = OptionUtils.Get(options, "videoId") useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken) + useCtt = client = Innertube.ClientType.TV and IsAssociativeArray(credentialTransferToken) and not StringUtils.IsNullOrEmpty(videoId) context = { "client": contextClient @@ -72,7 +73,7 @@ namespace Innertube } } - if IsAssociativeArray(credentialTransferToken) and not StringUtils.IsNullOrEmpty(videoId) + if useCtt cttCideoId = credentialTransferToken.videoId cttToken = credentialTransferToken.token