Settings work
This commit is contained in:
1 parent
c20bdc15eb
commit
95a77f0119
16 files changed
+176
-48
No files matched your search
@@ -8,6 +8,8 @@ import "pkg:/source/utils/WebUtils.bs"
|
||||
namespace Invidious
|
||||
const API_URL = "https://vid.puffyan.us"
|
||||
|
||||
const TOKEN_CALLBACK = "/invidious/token_callback"
|
||||
|
||||
const POPULAR_ENDPOINT = "/api/v1/popular"
|
||||
const TRENDING_ENDPOINT = "/api/v1/trending"
|
||||
|
||||
@@ -148,7 +150,7 @@ namespace Invidious
|
||||
webServerPort = 8888
|
||||
expire = TimeUtils.Now().AsSeconds() + 60 * 60 * 24 * 30 'A month from now
|
||||
|
||||
callbackUrl = WebUtils.UrlEncode(`http://${localIp}:${webServerPort}/token_callback`)
|
||||
callbackUrl = WebUtils.UrlEncode(`http://${localIp}:${webServerPort}${Invidious.TOKEN_CALLBACK}`)
|
||||
return `${invidiousHost}/authorize_token?scopes=${Invidious.AUTH_SCOPE}&callback_url=${callbackUrl}&expire=${expire}`
|
||||
end function
|
||||
|
||||
|
||||
Reference in new issue
Block a user