mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
always add all artists to subsonic
This commit is contained in:
@@ -776,9 +776,10 @@ export const SubsonicController: ControllerEndpoint = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const final: Array<string | { label: string; value: string }> = Array.from(roles).sort();
|
const final: Array<string | { label: string; value: string }> = Array.from(roles).sort();
|
||||||
if (final.length > 0) {
|
// Always add 'all artist' filter, even if there are no other roles
|
||||||
final.splice(0, 0, { label: 'all artists', value: '' });
|
// This is relevant when switching from a server which has roles to one with
|
||||||
}
|
// no roles.
|
||||||
|
final.splice(0, 0, { label: 'all artists', value: '' });
|
||||||
return final;
|
return final;
|
||||||
},
|
},
|
||||||
getServerInfo: async (args) => {
|
getServerInfo: async (args) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user