diff --git a/CHANGELOG.md b/CHANGELOG.md index 7768f5287..8f6674b40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Fixed +- Fix Jellyfin show library paging ## [0.6.0-beta] - 2022-06-01 ### Fixed diff --git a/ErsatzTV.Infrastructure/Jellyfin/JellyfinApiClient.cs b/ErsatzTV.Infrastructure/Jellyfin/JellyfinApiClient.cs index c901f461a..641d15b73 100644 --- a/ErsatzTV.Infrastructure/Jellyfin/JellyfinApiClient.cs +++ b/ErsatzTV.Infrastructure/Jellyfin/JellyfinApiClient.cs @@ -261,8 +261,11 @@ public class JellyfinApiClient : IJellyfinApiClient if (_memoryCache.TryGetValue($"jellyfin_admin_user_id.{mediaSourceId}", out string userId)) { IJellyfinApi service = RestService.For(address); + string filters = itemType == JellyfinItemType.Movie || itemType == JellyfinItemType.Episode + ? "IsNotFolder" + : null; int size = await service - .GetLibraryStats(apiKey, userId, parentId, itemType) + .GetLibraryStats(apiKey, userId, parentId, itemType, filters: filters) .Map(r => r.TotalRecordCount); const int PAGE_SIZE = 10;