Re-apply HA fork patches on upstream v12.0 #3

Merged
benvin merged 2139 commits from benvin/rebase-v12 into main 2026-09-12 12:48:36 +10:00
Showing only changes of commit d36c8ebce8 - Show all commits
@@ -297,14 +297,9 @@ namespace MediaBrowser.Controller.SyncPlay.Queue
var removedBeforePlayingItem = 0;
if (playingItem is not null)
{
var playlist = GetPlaylistInternal();
for (var index = 0; index < PlayingItemIndex; index++)
{
if (playlistItemIds.Contains(playlist[index].PlaylistItemId))
{
removedBeforePlayingItem++;
}
}
removedBeforePlayingItem = GetPlaylistInternal()
.Take(PlayingItemIndex)
.Count(item => playlistItemIds.Contains(item.PlaylistItemId));
}
_sortedPlaylist.RemoveAll(item => playlistItemIds.Contains(item.PlaylistItemId));