Added the mb db download. Big upsides and downsides

This commit is contained in:
Connor Johnstone
2026-03-21 23:22:49 -04:00
parent 75f3b4f704
commit 3dba620c9b
8 changed files with 420 additions and 6 deletions

View File

@@ -374,3 +374,13 @@ pub async fn ytauth_refresh() -> Result<serde_json::Value, ApiError> {
pub async fn ytauth_clear_cookies() -> Result<(), ApiError> {
delete(&format!("{BASE}/ytauth/cookies")).await
}
// --- MusicBrainz Local DB ---
pub async fn get_mb_status() -> Result<MbStatus, ApiError> {
get_json(&format!("{BASE}/mb-status")).await
}
pub async fn trigger_mb_import() -> Result<TaskRef, ApiError> {
post_empty(&format!("{BASE}/mb-import")).await
}