fix Subsonic root folder condition (#1686)

- some older subsonic servers used numeric ids which causes the rootFolderId regex to fail which resulted in the getFolder endpoint to always attempt to fetch the root
This commit is contained in:
jeffvli
2026-02-13 23:03:24 -08:00
parent 503e4b2bac
commit 91ac36c835
@@ -763,7 +763,7 @@ export const SubsonicController: InternalControllerEndpoint = {
getFolder: async ({ apiClientProps, context, query }) => {
const sortOrder = (query.sortOrder?.toLowerCase() ?? 'asc') as 'asc' | 'desc';
const isRootFolderId = /^\d+$/.test(query.id);
const isRootFolderId = query.id === '0';
if (isRootFolderId) {
const res = await ssApiClient(apiClientProps).getIndexes({