Forgot to pass artistID for artist searching

This commit is contained in:
2026-01-29 18:52:27 -05:00
parent 28d14a0006
commit e10b4408ba
2 changed files with 8 additions and 1 deletions

View File

@@ -96,13 +96,14 @@ public class JellyfinController : ControllerBase
// If Jellyfin returns empty results, we'll just return empty (not mixing browse with external)
if (string.IsNullOrWhiteSpace(searchTerm) && string.IsNullOrWhiteSpace(parentId))
{
_logger.LogDebug("No search term or parentId, proxying to Jellyfin");
_logger.LogDebug("No search term or parentId, proxying to Jellyfin with artistIds={ArtistIds}", artistIds);
var browseResult = await _proxyService.GetItemsAsync(
parentId: null,
includeItemTypes: ParseItemTypes(includeItemTypes),
sortBy: sortBy,
limit: limit,
startIndex: startIndex,
artistIds: artistIds,
clientHeaders: Request.Headers);
if (browseResult == null)

View File

@@ -357,6 +357,7 @@ public class JellyfinProxyService
string? sortBy = null,
int? limit = null,
int? startIndex = null,
string? artistIds = null,
IHeaderDictionary? clientHeaders = null)
{
var queryParams = new Dictionary<string, string>
@@ -395,6 +396,11 @@ public class JellyfinProxyService
queryParams["startIndex"] = startIndex.Value.ToString();
}
if (!string.IsNullOrEmpty(artistIds))
{
queryParams["artistIds"] = artistIds;
}
return await GetJsonAsync("Items", queryParams, clientHeaders);
}