aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/UserLibraryController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-06-01 21:59:06 +0200
committerGitHub <noreply@github.com>2026-06-01 21:59:06 +0200
commit53eda14dccddbcbd8806150489ff8f4495814631 (patch)
treef2db2d10496c90a554a41a5366d191a75b7629d4 /Jellyfin.Api/Controllers/UserLibraryController.cs
parent0d30a595642c647828c5e62bd64c067d5c33c02f (diff)
parent5feb70f489670808be682e1f2f80c4780651c57b (diff)
Merge pull request #16967 from Shadowghost/fix-recently-added-posters
Fix recently added episode links and posters
Diffstat (limited to 'Jellyfin.Api/Controllers/UserLibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/UserLibraryController.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/UserLibraryController.cs b/Jellyfin.Api/Controllers/UserLibraryController.cs
index 779186942a..9e3933f2d4 100644
--- a/Jellyfin.Api/Controllers/UserLibraryController.cs
+++ b/Jellyfin.Api/Controllers/UserLibraryController.cs
@@ -557,6 +557,8 @@ public class UserLibraryController : BaseJellyfinApiController
var dtoOptions = new DtoOptions { Fields = fields }
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes);
+ dtoOptions.PreferEpisodeParentPoster = true;
+
var list = _userViewManager.GetLatestItems(
new LatestItemsQuery
{
@@ -577,7 +579,7 @@ public class UserLibraryController : BaseJellyfinApiController
var item = tuple.Item2[0];
var childCount = 0;
- if (tuple.Item1 is not null && (tuple.Item2.Count > 1 || tuple.Item1 is MusicAlbum || tuple.Item1 is Series))
+ if (tuple.Item1 is not null && (tuple.Item2.Count > 1 || tuple.Item1 is MusicAlbum))
{
item = tuple.Item1;
childCount = tuple.Item2.Count;