added artist filters

This commit is contained in:
austinried
2021-08-22 13:24:12 +09:00
parent 43d8cc7fa7
commit 22b6524e8c
5 changed files with 89 additions and 22 deletions

View File

@@ -8,13 +8,19 @@ export interface Server {
salt: string
}
export interface FilterSettings {
export interface AlbumFilterSettings {
type: GetAlbumList2Type
fromYear: number
toYear: number
genre: string
}
export type ArtistFilterType = 'random' | 'starred' | 'alphabeticalByName'
export interface ArtistFilterSettings {
type: ArtistFilterType
}
export interface AppSettings {
servers: Server[]
screens: {
@@ -22,7 +28,8 @@ export interface AppSettings {
lists: string[]
}
library: {
albums: FilterSettings
albums: AlbumFilterSettings
artists: ArtistFilterSettings
}
}
activeServer?: string