mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Forgot to pass artistID for artist searching
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user