Update dependencies, do not parse non json

This commit is contained in:
Brahim Hadriche committed 2023-01-14 13:11:47 -05:00
1 parent 7a155c689e
commit c9e9e34b42
5 files changed
+56 -3328

No files matched your search

@@ -4,7 +4,10 @@ import "pkg:/source/roku_modules/rokurequests/Requests.brs"
@asynctask
function AppVersionTask() as object
latest = "N/A"
response = Requests().request("HEAD", "https://github.com/iBicha/playlet/releases/latest", invalid)
args = {
parseJson: false
}
response = Requests().request("HEAD", "https://github.com/iBicha/playlet/releases/latest", args)
if response.statusCode = 200
if response.headers.location <> invalid
@@ -30,7 +30,7 @@ namespace Http
dashUrl = `${dashUrl}?local=${local}`
end if
resp = Requests().get(dashUrl)
resp = Requests().get(dashUrl, { parseJson: false })
text = resp.text ?? ""
if resp.statuscode = 200 and local = "true"
text = text.Replace("<BaseURL>/videoplayback", `<BaseURL>${instance}/videoplayback`)