credentialTransferTokens should only be used with TV clients

This commit is contained in:
Brahim Hadriche committed 2025-09-30 10:32:41 -04:00
1 parent aae403b638
commit daaa2974b8
2 files changed
+8 -1

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).
## [Unreleased]
### Fixed
- Bug: credentialTransferTokens should only be used with TV clients
## [0.42.0] - 2025-09-30
### Added
@@ -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