From bf286d4ece19331272f0fa3e7cd36d5bb0145355 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 18 Nov 2024 20:50:25 +0100 Subject: [PATCH] fix: Use ItemId instead of Id for LinkedChild. See #12892 --- .../ScheduledTasks/GeneratePlaylist.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs index 5490d15..bb0a7b2 100644 --- a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs +++ b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs @@ -172,7 +172,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.ScheduledTasks { throw new ArgumentException(""); } var existingItems = playlist_new.GetManageableItems().ToList(); - await _playlistManager.RemoveItemFromPlaylistAsync(playlist.Id.ToString(), existingItems.Select(x => x.Item1.Id)); + await _playlistManager.RemoveItemFromPlaylistAsync(playlist.Id.ToString(), existingItems.Select(x => x.Item1.ItemId.ToString())); } } }