Playlet decipher server (#691)
* Playlet decipher server * cache sts * wip * PoToken per video * remove unused param * potoken mandatory for videos * separate potoken option * logging * rename * /player with auth * Refactor rename * Fix rename * parse isloggedin tweak * TODO * get rid of hardcoded formats * Remove hardcoded formats in web app * refactor * no cache for sts request * [skip ci] todo * [skip ci] update PRVACY * No visitor data if we're using a profile * Cancellation * remove visitor data header for authed /player * iOS fallback for live videos * changelog * revert using dashUrl * refactor
This commit is contained in:
1 parent
f29f0b3654
commit
7518831b65
15 files changed
+408
-145
No files matched your search
@@ -10,6 +10,7 @@ function ExecuteJob() as void
|
||||
invidiousNode = input.invidious
|
||||
authToken = input.authToken
|
||||
profileType = input.profileType
|
||||
playbackTrackingUrls = input.playbackTrackingUrls
|
||||
|
||||
cancellation = CancellationUtils.CreateCancellation(JobGetCallbackNode(), "cancel", true)
|
||||
|
||||
@@ -24,11 +25,13 @@ function ExecuteJob() as void
|
||||
return
|
||||
end if
|
||||
|
||||
playbackTrackingUrls = InnertubeService.AuthGetPlaybackTrackingUrls(videoId, {
|
||||
accessToken: authToken.token
|
||||
onBehalfOfUser: authToken.activeIdentifyToken
|
||||
cancellation: cancellation
|
||||
})
|
||||
if playbackTrackingUrls = invalid or StringUtils.IsNullOrEmpty(playbackTrackingUrls.videostatsPlaybackUrl) or StringUtils.IsNullOrEmpty(playbackTrackingUrls.videostatsWatchtimeUrl)
|
||||
playbackTrackingUrls = InnertubeService.AuthGetPlaybackTrackingUrls(videoId, {
|
||||
accessToken: authToken.token
|
||||
onBehalfOfUser: authToken.activeIdentifyToken
|
||||
cancellation: cancellation
|
||||
})
|
||||
end if
|
||||
|
||||
if playbackTrackingUrls.error <> invalid
|
||||
JobError(`Failed to get playback tracking URLs: ${playbackTrackingUrls.error}`)
|
||||
|
||||
Reference in new issue
Block a user