diff options
| author | theguymadmax <171496228+theguymadmax@users.noreply.github.com> | 2025-10-27 15:43:17 -0400 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2025-10-27 15:43:17 -0400 |
| commit | 4c1c160990f82583742c129048ff3db375f01017 (patch) | |
| tree | 46f449e7c740fbe43f9ddd0fc1b28774431a688b | |
| parent | 0931d6e4de9e120af8a4b2d3b26a1587d22d445b (diff) | |
Backport pull request #15133 from jellyfin/release-10.11.z
Play selected song first with instant mix
Original-merge: 1520a697ad43f3f023608f8012cce1f52926b5fe
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
| -rw-r--r-- | Emby.Server.Implementations/Library/MusicManager.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/MusicManager.cs b/Emby.Server.Implementations/Library/MusicManager.cs index e0c8ae371..e19ad3ef6 100644 --- a/Emby.Server.Implementations/Library/MusicManager.cs +++ b/Emby.Server.Implementations/Library/MusicManager.cs @@ -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 /> |
