Populate home screen a bit
This commit is contained in:
1 parent
201388bd27
commit
28b294dd3b
3 files changed
+28
-8
No files matched your search
@@ -24,9 +24,15 @@ namespace RokuYoutube.Services.Invidious
|
||||
end if
|
||||
end function
|
||||
|
||||
function GetTrending()
|
||||
function GetTrending(trendingType = invalid as string)
|
||||
url = `${API_URL}${TRENDING_ENDPOINT}`
|
||||
response = Requests().get(url)
|
||||
|
||||
args = { params: {} }
|
||||
if trendingType <> invalid
|
||||
args.params.type = trendingType
|
||||
end if
|
||||
|
||||
response = Requests().get(url, args)
|
||||
|
||||
if response.statuscode = 200
|
||||
return response.json
|
||||
|
||||
Reference in new issue
Block a user