From 4407c8d4247aa05a1e8ab5780d7986f916a8cbd1 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Tue, 8 Jul 2025 14:42:49 -0700 Subject: [PATCH] convert query="" to query= for subsonic --- src/renderer/api/subsonic/subsonic-controller.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/api/subsonic/subsonic-controller.ts b/src/renderer/api/subsonic/subsonic-controller.ts index 7d2318db..f1b1491e 100644 --- a/src/renderer/api/subsonic/subsonic-controller.ts +++ b/src/renderer/api/subsonic/subsonic-controller.ts @@ -273,7 +273,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: query.startIndex, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: 0, songOffset: 0, }, @@ -426,7 +426,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: startIndex, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: 0, songOffset: 0, }, @@ -906,7 +906,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: 0, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: query.limit, songOffset: query.startIndex, }, @@ -1048,7 +1048,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: 0, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: query.limit, songOffset: query.startIndex, }, @@ -1088,7 +1088,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: 0, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: MAX_SUBSONIC_ITEMS, songOffset: startIndex, }, @@ -1191,7 +1191,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: 0, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: 1, songOffset: sectionIndex, }, @@ -1219,7 +1219,7 @@ export const SubsonicController: ControllerEndpoint = { albumOffset: 0, artistCount: 0, artistOffset: 0, - query: query.searchTerm || '""', + query: query.searchTerm || '', songCount: MAX_SUBSONIC_ITEMS, songOffset: startIndex, },