Remove todo, rename registry key
This commit is contained in:
1 parent
1b4d0b5f90
commit
4f22353d14
7 files changed
+6
-23
No files matched your search
@@ -104,7 +104,6 @@ namespace Invidious
|
||||
end function
|
||||
|
||||
function Search(q as string, args = invalid as dynamic) as object
|
||||
'page = invalid as integer, sort_by = invalid as RokuYoutube.Models.Invidious.SearchFilter.SortBy, date = invalid as RokuYoutube.Models.Invidious.SearchFilter.Date, duration = invalid as RokuYoutube.Models.Invidious.SearchFilter.Duration, _type = invalid as RokuYoutube.Models.Invidious.SearchFilter.SearchType, features = invalid as RokuYoutube.Models.Invidious.SearchFilter.Features) as object
|
||||
url = `${Invidious.API_URL}${Invidious.SEARCH_ENDPOINT}`
|
||||
|
||||
_args = Invidious.DefaultArgs()
|
||||
@@ -155,7 +154,7 @@ namespace Invidious
|
||||
end function
|
||||
|
||||
function GetAuthenticationHeaders() as object
|
||||
token = RegistryUtils.Read("token")
|
||||
token = RegistryUtils.Read("invidious_token")
|
||||
if token = invalid
|
||||
return invalid
|
||||
end if
|
||||
@@ -180,7 +179,7 @@ namespace Invidious
|
||||
response = Requests().get(url, args)
|
||||
|
||||
if response.statuscode = 403
|
||||
RegistryUtils.Delete("token")
|
||||
RegistryUtils.Delete("invidious_token")
|
||||
end if
|
||||
if response.statuscode = 200
|
||||
return response.json.videos
|
||||
@@ -204,7 +203,7 @@ namespace Invidious
|
||||
response = Requests().get(url, args)
|
||||
|
||||
if response.statuscode = 403
|
||||
RegistryUtils.Delete("token")
|
||||
RegistryUtils.Delete("invidious_token")
|
||||
end if
|
||||
if response.statuscode = 200
|
||||
return response.json
|
||||
|
||||
Reference in new issue
Block a user