mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 17:19:27 +01:00
* get all song coverArt as they are rendered doing it all up front was too heavy temporarily disabled mapping artwork in setQueue, need to fix this * use cache data for track artwork when available * fix round art in context menu for songs * set only the first artwork at play time then set the rest in the playback service * handle both cached images and fetching images * remove commented code * fix shuffle fix first thumbnail not being updated on shuffle for now playing background
65 lines
1.1 KiB
TypeScript
65 lines
1.1 KiB
TypeScript
export interface Artist {
|
|
itemType: 'artist'
|
|
id: string
|
|
name: string
|
|
starred?: number
|
|
coverArt?: string
|
|
}
|
|
|
|
export interface ArtistInfo {
|
|
id: string
|
|
smallImageUrl?: string
|
|
largeImageUrl?: string
|
|
}
|
|
|
|
export interface Album {
|
|
itemType: 'album'
|
|
id: string
|
|
name: string
|
|
artist?: string
|
|
artistId?: string
|
|
starred?: number
|
|
coverArt?: string
|
|
year?: number
|
|
}
|
|
|
|
export interface Playlist {
|
|
itemType: 'playlist'
|
|
id: string
|
|
name: string
|
|
comment?: string
|
|
coverArt?: string
|
|
}
|
|
|
|
export interface Song {
|
|
itemType: 'song'
|
|
id: string
|
|
album?: string
|
|
albumId?: string
|
|
artist?: string
|
|
artistId?: string
|
|
title: string
|
|
track?: number
|
|
discNumber?: number
|
|
duration?: number
|
|
starred?: number
|
|
playCount?: number
|
|
userRating?: number
|
|
averageRating?: number
|
|
}
|
|
|
|
export interface SearchResults {
|
|
artists: Artist[]
|
|
albums: Album[]
|
|
songs: Song[]
|
|
}
|
|
|
|
export type StarrableItemType = 'album' | 'song' | 'artist'
|
|
|
|
export type ListableItem = Album | Song | Artist | Playlist
|
|
|
|
export interface AlbumCoverArt {
|
|
albumId: string
|
|
coverArt?: string
|
|
}
|