Small cleanup
This commit is contained in:
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.
|
||||
' This is to makes it possible to load a bookmarked video and delete it even if
|
||||
' it is no longer valid.
|
||||
' TODO:P2 access to private property
|
||||
response._statusCode = 200
|
||||
response.OverrideStatusCode(200)
|
||||
return {
|
||||
items: [{
|
||||
"videoId": feedSource.pathParams.id
|
||||
|
||||
@@ -574,6 +574,10 @@ namespace HttpClient
|
||||
return m._statusCode
|
||||
end function
|
||||
|
||||
function OverrideStatusCode(statusCode as integer)
|
||||
m._statusCode = statusCode
|
||||
end function
|
||||
|
||||
function IsSuccess() as boolean
|
||||
statusCode = m.StatusCode()
|
||||
return statusCode >= 200 and statusCode < 400
|
||||
|
||||
Reference in new issue
Block a user