faster fetching for artist albums

This commit is contained in:
2026-02-22 20:42:32 -05:00
parent ab5f690c05
commit bd9652b378
3 changed files with 83 additions and 30 deletions
@@ -61,6 +61,14 @@ export class LibraryController implements ReactiveController {
return libraryStore.getAlbumsByArtist(artistID);
}
getAlbumsByArtistNameCached(
artistName: string,
): library.Album[] | null {
return libraryStore.getAlbumsByArtistNameCached(
artistName,
);
}
get cachedTracks(): library.Track[] | null {
return libraryStore.getCachedTracks();
}