use only original/large imges for covers/artist

fix view artist from context menu
add loading indicators to song list and artist views (show info we have right away)
This commit is contained in:
austinried
2022-03-20 15:27:27 +09:00
parent a15159014c
commit c9aea9065c
8 changed files with 78 additions and 74 deletions

View File

@@ -51,7 +51,6 @@ export interface Artist {
export interface ArtistInfo {
id: string
smallImageUrl?: string
largeImageUrl?: string
}
@@ -108,7 +107,6 @@ function mapArtist(artist: ArtistID3Element): Artist {
function mapArtistInfo(id: string, info: ArtistInfo2Element): ArtistInfo {
return {
id,
smallImageUrl: info.smallImageUrl,
largeImageUrl: info.largeImageUrl,
}
}
@@ -119,7 +117,7 @@ function mapAlbum(album: AlbumID3Element): Album {
id: album.id,
name: album.name,
artist: album.artist,
artistId: album.artist,
artistId: album.artistId,
starred: album.starred,
coverArt: album.coverArt,
year: album.year,