mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
fix:music filtering subsonic (#1442)
* Add musicFolderId filtering for tracks in Subsonic API --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1195,6 +1195,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
albumOffset: 0,
|
||||
artistCount: 0,
|
||||
artistOffset: 0,
|
||||
musicFolderId: getLibraryId(query.musicFolderId),
|
||||
query: query.searchTerm || '',
|
||||
songCount: query.limit,
|
||||
songOffset: query.startIndex,
|
||||
@@ -1339,6 +1340,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
albumOffset: 0,
|
||||
artistCount: 0,
|
||||
artistOffset: 0,
|
||||
musicFolderId: getLibraryId(query.musicFolderId),
|
||||
query: query.searchTerm || '',
|
||||
songCount: query.limit,
|
||||
songOffset: query.startIndex,
|
||||
@@ -1379,6 +1381,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
albumOffset: 0,
|
||||
artistCount: 0,
|
||||
artistOffset: 0,
|
||||
musicFolderId: getLibraryId(query.musicFolderId),
|
||||
query: query.searchTerm || '',
|
||||
songCount: MAX_SUBSONIC_ITEMS,
|
||||
songOffset: startIndex,
|
||||
@@ -1482,6 +1485,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
albumOffset: 0,
|
||||
artistCount: 0,
|
||||
artistOffset: 0,
|
||||
musicFolderId: getLibraryId(query.musicFolderId),
|
||||
query: query.searchTerm || '',
|
||||
songCount: 1,
|
||||
songOffset: sectionIndex,
|
||||
@@ -1510,6 +1514,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
albumOffset: 0,
|
||||
artistCount: 0,
|
||||
artistOffset: 0,
|
||||
musicFolderId: getLibraryId(query.musicFolderId),
|
||||
query: query.searchTerm || '',
|
||||
songCount: MAX_SUBSONIC_ITEMS,
|
||||
songOffset: startIndex,
|
||||
|
||||
Reference in New Issue
Block a user