update to the playlists. testing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user