Mixes in in Playlet backend (#530)
This commit is contained in:
1 parent
5b6b5f5ec3
commit
0d21963d5f
12 files changed
+149
-36
No files matched your search
@@ -8,20 +8,13 @@ import "pkg:/source/utils/Types.bs"
|
||||
|
||||
namespace Innertube
|
||||
|
||||
function CreateNextRequest(videoId as string, params as string, ctt as string) as object
|
||||
function CreateNextRequest(payloadArgs as object, ctt as string) as object
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
|
||||
payload = {
|
||||
"context": Innertube.CreateContext(Innertube.ClientType.Web, deviceInfo, ctt)
|
||||
}
|
||||
|
||||
if videoId <> ""
|
||||
payload["videoId"] = videoId
|
||||
end if
|
||||
|
||||
if params <> ""
|
||||
payload["params"] = params
|
||||
end if
|
||||
payload.Append(payloadArgs)
|
||||
|
||||
request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/next?prettyPrint=false&alt=json", payload)
|
||||
headers = {
|
||||
|
||||
Reference in new issue
Block a user