Update dependencies, do not parse non json
This commit is contained in:
1 parent
7a155c689e
commit
c9e9e34b42
5 files changed
+56
-3328
No files matched your search
Generated
+43
-3318
File diff suppressed because it is too large.
Load diff
+7
-7
@@ -4,18 +4,18 @@
|
||||
"description": "Unofficial Youtube client for Roku",
|
||||
"dependencies": {
|
||||
"bslib": "npm:@rokucommunity/bslib@^0.1.1",
|
||||
"log": "npm:roku-log@^0.8.0",
|
||||
"roku-requests": "^0.2.0"
|
||||
"log": "npm:roku-log@^0.9.3",
|
||||
"roku-requests": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.7.7",
|
||||
"@rokucommunity/bslint": "^0.8.1",
|
||||
"@types/node": "^18.11.18",
|
||||
"brighterscript": "^0.60.6",
|
||||
"brighterscript-formatter": "^1.6.22",
|
||||
"brighterscript": "^0.61.3",
|
||||
"brighterscript-formatter": "^1.6.23",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"dotenv": "^16.0.3",
|
||||
"roku-log-bsc-plugin": "^0.6.2",
|
||||
"ropm": "^0.10.10",
|
||||
"roku-log-bsc-plugin": "^0.7.0",
|
||||
"ropm": "^0.10.11",
|
||||
"semver": "^7.3.8",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.4"
|
||||
|
||||
@@ -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`)
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace SponsorBlock
|
||||
|
||||
function PostSegmentViewed(segmentId as string) as boolean
|
||||
url = `${SponsorBlock.API_URL}${SponsorBlock.VIEWED_SEGMENT_ENDPOINT}?UUID=${segmentId}`
|
||||
response = Requests().post(url)
|
||||
response = Requests().post(url, { parseJson: false })
|
||||
return response.statuscode = 200
|
||||
end function
|
||||
|
||||
|
||||
Reference in new issue
Block a user