Small cleanup

This commit is contained in:
Brahim Hadriche committed 2024-02-27 20:04:12 -05:00
1 parent 87e7d91169
commit aebdc579a9
2 files changed
+5 -2

No files matched your search

@@ -386,8 +386,7 @@ namespace Invidious
' with just a video id, which will allow us to show a valid thumbnail if possible. ' with just a video id, which will allow us to show a valid thumbnail if possible.
' This is to makes it possible to load a bookmarked video and delete it even if ' This is to makes it possible to load a bookmarked video and delete it even if
' it is no longer valid. ' it is no longer valid.
' TODO:P2 access to private property response.OverrideStatusCode(200)
response._statusCode = 200
return { return {
items: [{ items: [{
"videoId": feedSource.pathParams.id "videoId": feedSource.pathParams.id
@@ -574,6 +574,10 @@ namespace HttpClient
return m._statusCode return m._statusCode
end function end function
function OverrideStatusCode(statusCode as integer)
m._statusCode = statusCode
end function
function IsSuccess() as boolean function IsSuccess() as boolean
statusCode = m.StatusCode() statusCode = m.StatusCode()
return statusCode >= 200 and statusCode < 400 return statusCode >= 200 and statusCode < 400