Added the mb db download. Big upsides and downsides
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user