mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
fixes #689 - Support grouping latest items
This commit is contained in:
@@ -460,7 +460,6 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
return 10;
|
||||
})
|
||||
.ThenBy(i => i.Name)
|
||||
.ToList();
|
||||
|
||||
// Attach People by transforming them into BaseItemPerson (DTO)
|
||||
|
||||
@@ -217,5 +217,6 @@
|
||||
"HeaderName": "Name",
|
||||
"HeaderAlbum": "Album",
|
||||
"HeaderAlbumArtist": "Album Artist",
|
||||
"HeaderArtist": "Artist"
|
||||
"HeaderArtist": "Artist",
|
||||
"LabelAddedOnDate": "Added {0}"
|
||||
}
|
||||
@@ -616,6 +616,20 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
info.MediaSourceId = info.ItemId;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(info.ItemId) && libraryItem != null)
|
||||
{
|
||||
var current = session.NowPlayingItem;
|
||||
|
||||
if (current == null || !string.Equals(current.Id, info.ItemId, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Item = GetItemInfo(libraryItem, libraryItem, info.MediaSourceId);
|
||||
}
|
||||
else
|
||||
{
|
||||
info.Item = current;
|
||||
}
|
||||
}
|
||||
|
||||
RemoveNowPlayingItem(session);
|
||||
|
||||
var users = GetUsers(session);
|
||||
|
||||
Reference in New Issue
Block a user