更新 play.lua
This commit is contained in:
6
play.lua
6
play.lua
@@ -186,7 +186,8 @@ for startIdx = 1, totalFrames, BATCH_SIZE do
|
||||
local resp,err = http.post(
|
||||
server_url .. "/api/framepack",
|
||||
textutils.serializeJSON({ urls = urls }),
|
||||
{ ["Content-Type"] = "application/json" }
|
||||
{ ["Content-Type"] = "application/json" },
|
||||
true
|
||||
)
|
||||
|
||||
|
||||
@@ -316,7 +317,8 @@ local function cacheAhead()
|
||||
url = server_url .. "/api/framepack?"..batch.urls[1],
|
||||
headers = { ["Content-Type"] = "application/json" },
|
||||
body = textutils.serializeJSON({ urls = batch.urls } ),
|
||||
timeout = 3
|
||||
timeout = 3,
|
||||
binary = true
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user