api: automatically pull youtube session tokens from a session server

if provided, cobalt will pull poToken & visitor_data from an instance of invidious' youtube-trusted-session-generator or its counterpart
This commit is contained in:
wukko
2025-03-19 18:51:26 +06:00
parent a940eb13fd
commit b6cd0ad727
4 changed files with 97 additions and 5 deletions

View File

@@ -53,7 +53,10 @@ const env = {
keyReloadInterval: 900,
enabledServices,
customInnertubeClient: process.env.CUSTOM_INNERTUBE_CLIENT,
ytSessionServer: process.env.YOUTUBE_SESSION_SERVER,
ytSessionReloadInterval: 300,
}
const genericUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36";