diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 5886dd4..0ab6580 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -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) diff --git a/allstarr/Services/Jellyfin/JellyfinProxyService.cs b/allstarr/Services/Jellyfin/JellyfinProxyService.cs index 75df0fb..24029d3 100644 --- a/allstarr/Services/Jellyfin/JellyfinProxyService.cs +++ b/allstarr/Services/Jellyfin/JellyfinProxyService.cs @@ -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 @@ -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); }