credentialTransferTokens should only be used with TV clients
This commit is contained in:
1 parent
aae403b638
commit
daaa2974b8
2 files changed
+8
-1
No files matched your search
@@ -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/),
|
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).
|
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
|
## [0.42.0] - 2025-09-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ namespace Innertube
|
|||||||
videoId = OptionUtils.Get(options, "videoId")
|
videoId = OptionUtils.Get(options, "videoId")
|
||||||
|
|
||||||
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
||||||
|
useCtt = client = Innertube.ClientType.TV and IsAssociativeArray(credentialTransferToken) and not StringUtils.IsNullOrEmpty(videoId)
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"client": contextClient
|
"client": contextClient
|
||||||
@@ -72,7 +73,7 @@ namespace Innertube
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if IsAssociativeArray(credentialTransferToken) and not StringUtils.IsNullOrEmpty(videoId)
|
if useCtt
|
||||||
cttCideoId = credentialTransferToken.videoId
|
cttCideoId = credentialTransferToken.videoId
|
||||||
cttToken = credentialTransferToken.token
|
cttToken = credentialTransferToken.token
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user