fix: resolve type mismatches and add Phase 6 polish
- Fix RemoteTrackMetadata field types (disc_number, track_number as u8) - Fix RemoteAlbumMetadata fields (genres, tracks as Vec, disc_count as u8) - Fix cache method calls (async, proper signatures) - Fix error variant construction (ProviderUnavailable, InvalidProviderId) - Add track count mismatch warning in UI - Add rate limit error message handling - Add 'Open in browser' button for selected result
This commit is contained in:
1 parent
9dd63e106b
commit
dddb4d4fd1
3 files changed
+82
-38
No files matched your search
@@ -80,7 +80,7 @@ pub async fn remote_metadata_cache_stats(
|
||||
state: State<'_, RemoteMetadataSharedState>,
|
||||
) -> Result<crate::library::remote_metadata::CacheStats, String> {
|
||||
let state_guard = state.inner.lock().await;
|
||||
Ok(state_guard.cache.stats())
|
||||
Ok(state_guard.cache.stats().await)
|
||||
}
|
||||
|
||||
/// Clear the remote metadata cache
|
||||
@@ -90,7 +90,7 @@ pub async fn remote_metadata_clear_cache(
|
||||
) -> Result<(), String> {
|
||||
log::info!("Command: remote_metadata_clear_cache");
|
||||
let state_guard = state.inner.lock().await;
|
||||
state_guard.cache.clear_all();
|
||||
state_guard.cache.clear_all().await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user