Use credentialTransferToken to play age restricted videos (#498)
* Use credentialTransferToken to play age restricted videos * changelog
This commit is contained in:
1 parent
ee239c3ea9
commit
1e161e8a77
6 files changed
+41
-5
No files matched your search
@@ -6,6 +6,7 @@ function VideoContentTask(input as object) as object
|
||||
contentNode = input.content
|
||||
invidiousNode = input.invidious
|
||||
preferencesNode = input.preferences
|
||||
loungeServiceNode = input.loungeService
|
||||
playletServerPort = input.playletServerPort
|
||||
|
||||
if m.top.cancel
|
||||
@@ -20,7 +21,10 @@ function VideoContentTask(input as object) as object
|
||||
|
||||
backend = preferencesNode["playback.backend"]
|
||||
if backend = "playlet"
|
||||
response = InnertubeService.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||
response = InnertubeService.GetVideoMetadata(contentNode.videoId, {
|
||||
cancellation: m.top.cancellation
|
||||
ctt: loungeServiceNode.ctt
|
||||
})
|
||||
else
|
||||
response = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||
end if
|
||||
|
||||
@@ -152,6 +152,7 @@ function StartVideoContentTask(videoContentNode as object)
|
||||
content: videoContentNode
|
||||
invidious: m.top.invidious
|
||||
preferences: m.top.preferences
|
||||
loungeService: m.top.loungeService
|
||||
playletServerPort: m.top.webServer.port
|
||||
}, OnVideoContentTaskResults)
|
||||
end function
|
||||
|
||||
Reference in new issue
Block a user