Re-organized providers and added a few

This commit is contained in:
Connor Johnstone
2026-03-20 14:52:16 -04:00
parent fed86c9e85
commit eaaff5f98f
12 changed files with 353 additions and 185 deletions

View File

@@ -32,6 +32,8 @@ struct AuthStatus {
ytdlp_version: Option<String>,
ytdlp_latest: Option<String>,
ytdlp_update_available: bool,
lastfm_api_key_set: bool,
fanart_api_key_set: bool,
}
/// GET /api/ytauth/status — check YouTube auth state.
@@ -78,6 +80,8 @@ async fn status(state: web::Data<AppState>, session: Session) -> Result<HttpResp
ytdlp_version,
ytdlp_latest,
ytdlp_update_available,
lastfm_api_key_set: config.metadata.lastfm_api_key.is_some(),
fanart_api_key_set: config.metadata.fanart_api_key.is_some(),
}))
}