Refactor for activeIdentityToken (#631)

* Refactor for activeIdentityToken

* Account selector stuff

* Small refactor

* Tweak

* That's a wrap

* comment

* Lint fix

* Localize

* Lint fix

* Close view on error

* parse error when gathering tracking urls

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2025-05-31 14:40:33 -04:00
1 parent 4c94db2c03
commit 9e3da6b67d
31 files changed
+606 -413

No files matched your search

@@ -23,6 +23,7 @@ function MarkVideoWatchedTask(input as object) as object
playbackTrackingUrls = InnertubeService.AuthGetPlaybackTrackingUrls(videoId, {
accessToken: authToken.token
onBehalfOfUser: authToken.activeIdentifyToken
cancellation: cancellation
})
@@ -38,6 +39,7 @@ function MarkVideoWatchedTask(input as object) as object
markedAsWatched = InnertubeService.AuthMarkVideoWatched(playbackTrackingUrls.videostatsPlaybackUrl, {
accessToken: authToken.token
onBehalfOfUser: authToken.activeIdentifyToken
cancellation: cancellation
})
if not markedAsWatched
@@ -67,6 +69,7 @@ function MarkVideoWatchedTask(input as object) as object
watchTime = message.getData()
InnertubeService.AuthMarkVideoWatchTime(watchTime, playbackTrackingUrls.videostatsWatchtimeUrl, {
accessToken: authToken.token
onBehalfOfUser: authToken.activeIdentifyToken
cancellation: cancellation
})
end while
@@ -24,7 +24,7 @@ function VideoContentTask(input as object) as object
if backend = "playlet"
metadata = InnertubeService.GetVideoMetadata(contentNode.videoId, {
"cancellation": m.top.cancellation
"ctt": loungeServiceNode.ctt
"credentialTransferToken": loungeServiceNode.credentialTransferToken
"visitorData": innertubeNode.visitorData
})
else