mirror of https://github.com/jellyfin/jellyfin
Backport pull request #15133 from jellyfin/release-10.11.z
Play selected song first with instant mix
Original-merge: 1520a697ad
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
parent
0931d6e4de
commit
4c1c160990
|
|
@ -28,7 +28,9 @@ namespace Emby.Server.Implementations.Library
|
|||
|
||||
public IReadOnlyList<BaseItem> GetInstantMixFromSong(Audio item, User? user, DtoOptions dtoOptions)
|
||||
{
|
||||
return GetInstantMixFromGenres(item.Genres, user, dtoOptions);
|
||||
var instantMixItems = GetInstantMixFromGenres(item.Genres, user, dtoOptions);
|
||||
|
||||
return [item, .. instantMixItems.Where(i => !i.Id.Equals(item.Id))];
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
|
|||
Loading…
Reference in New Issue