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 Jellyfin returns empty results, we'll just return empty (not mixing browse with external)
|
||||||
if (string.IsNullOrWhiteSpace(searchTerm) && string.IsNullOrWhiteSpace(parentId))
|
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(
|
var browseResult = await _proxyService.GetItemsAsync(
|
||||||
parentId: null,
|
parentId: null,
|
||||||
includeItemTypes: ParseItemTypes(includeItemTypes),
|
includeItemTypes: ParseItemTypes(includeItemTypes),
|
||||||
sortBy: sortBy,
|
sortBy: sortBy,
|
||||||
limit: limit,
|
limit: limit,
|
||||||
startIndex: startIndex,
|
startIndex: startIndex,
|
||||||
|
artistIds: artistIds,
|
||||||
clientHeaders: Request.Headers);
|
clientHeaders: Request.Headers);
|
||||||
|
|
||||||
if (browseResult == null)
|
if (browseResult == null)
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ public class JellyfinProxyService
|
|||||||
string? sortBy = null,
|
string? sortBy = null,
|
||||||
int? limit = null,
|
int? limit = null,
|
||||||
int? startIndex = null,
|
int? startIndex = null,
|
||||||
|
string? artistIds = null,
|
||||||
IHeaderDictionary? clientHeaders = null)
|
IHeaderDictionary? clientHeaders = null)
|
||||||
{
|
{
|
||||||
var queryParams = new Dictionary<string, string>
|
var queryParams = new Dictionary<string, string>
|
||||||
@@ -395,6 +396,11 @@ public class JellyfinProxyService
|
|||||||
queryParams["startIndex"] = startIndex.Value.ToString();
|
queryParams["startIndex"] = startIndex.Value.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(artistIds))
|
||||||
|
{
|
||||||
|
queryParams["artistIds"] = artistIds;
|
||||||
|
}
|
||||||
|
|
||||||
return await GetJsonAsync("Items", queryParams, clientHeaders);
|
return await GetJsonAsync("Items", queryParams, clientHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user