update to the playlists. testing
CI / check (push) Successful in 1m15s
CI / docker (push) Successful in 2m11s

This commit is contained in:
Connor Johnstone
2026-04-01 22:12:58 -04:00
parent f77cea47b1
commit b2f030b52d
8 changed files with 224 additions and 32 deletions
+7
View File
@@ -59,6 +59,13 @@ impl HybridMusicBrainzFetcher {
self.remote.get_artist_by_mbid(mbid).await
}
/// Get artist info from local DB only (no remote API fallback).
/// Returns `None` if the local DB is unavailable or doesn't have this artist.
pub fn get_artist_info_local(&self, mbid: &str) -> Option<ArtistInfo> {
self.local_if_available()
.and_then(|l| l.get_artist_info_sync(mbid).ok())
}
/// Get detailed artist info by MBID. Tries local first, then remote.
pub async fn get_artist_info(&self, mbid: &str) -> DataResult<ArtistInfo> {
if let Some(local) = self.local_if_available()