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:
1 parent
4c94db2c03
commit
9e3da6b67d
31 files changed
+606
-413
No files matched your search
+37
@@ -69,6 +69,12 @@ namespace Http
|
||||
"accessToken": accessToken.Mid("Bearer ".Len())
|
||||
"disableShorts": m.preferences["content_feed.disable_shorts"]
|
||||
}
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
|
||||
continuation = request.query.continuation
|
||||
if not StringUtils.IsNullOrEmpty(continuation)
|
||||
options.continuation = continuation
|
||||
@@ -141,6 +147,12 @@ namespace Http
|
||||
options = {
|
||||
"accessToken": accessToken.Mid("Bearer ".Len())
|
||||
}
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
|
||||
continuation = request.query.continuation
|
||||
if not StringUtils.IsNullOrEmpty(continuation)
|
||||
options.continuation = continuation
|
||||
@@ -188,6 +200,11 @@ namespace Http
|
||||
"accessToken": accessToken.Mid("Bearer ".Len())
|
||||
}
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
|
||||
continuation = request.query.continuation
|
||||
hasContinuation = not StringUtils.IsNullOrEmpty(continuation)
|
||||
if hasContinuation
|
||||
@@ -302,6 +319,11 @@ namespace Http
|
||||
"disableShorts": m.preferences["content_feed.disable_shorts"]
|
||||
}
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
|
||||
continuation = request.query.continuation
|
||||
if not StringUtils.IsNullOrEmpty(continuation)
|
||||
options.continuation = continuation
|
||||
@@ -589,6 +611,11 @@ namespace Http
|
||||
accessToken = request.headers["authorization"]
|
||||
if not StringUtils.IsNullOrEmpty(accessToken) and accessToken.StartsWith("Bearer ")
|
||||
options["accessToken"] = accessToken.Mid("Bearer ".Len())
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
end if
|
||||
|
||||
if playlistId.StartsWith("RD")
|
||||
@@ -781,6 +808,11 @@ namespace Http
|
||||
"accessToken": accessToken.Mid("Bearer ".Len())
|
||||
}
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
|
||||
result = InnertubeService.SubscribeToChannel(channelId, options)
|
||||
|
||||
if result.success <> true
|
||||
@@ -836,6 +868,11 @@ namespace Http
|
||||
"accessToken": accessToken.Mid("Bearer ".Len())
|
||||
}
|
||||
|
||||
activeIdentifyToken = request.query.activeIdentifyToken
|
||||
if not StringUtils.IsNullOrEmpty(activeIdentifyToken)
|
||||
options.onBehalfOfUser = activeIdentifyToken
|
||||
end if
|
||||
|
||||
result = InnertubeService.UnsubscribeFromChannel(channelId, options)
|
||||
|
||||
if result.success <> true
|
||||
|
||||
Reference in new issue
Block a user