Updated the ytmusic cookies situation

This commit is contained in:
Connor Johnstone
2026-03-20 13:38:49 -04:00
parent c8e78606b1
commit fed86c9e85
10 changed files with 722 additions and 15 deletions

View File

@@ -67,8 +67,12 @@ async fn main() -> anyhow::Result<()> {
config: std::sync::Arc::new(tokio::sync::RwLock::new(config)),
config_path,
tasks: TaskManager::new(),
firefox_login: tokio::sync::Mutex::new(None),
});
// Start background cookie refresh task
shanty_web::cookie_refresh::spawn(state.config.clone());
// Resolve static files directory relative to the binary location
let static_dir = std::env::current_exe()
.ok()