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
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user