From 28f3cc682e0bc2a3c3f55633bd5e0bfd78744461 Mon Sep 17 00:00:00 2001 From: redxef Date: Sat, 21 Dec 2024 01:09:02 +0100 Subject: [PATCH] feat: respect enabled flag on playlists. --- .../ScheduledTasks/GeneratePlaylist.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs index 99f1796..f0472c3 100644 --- a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs +++ b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs @@ -166,6 +166,9 @@ namespace Jellyfin.Plugin.SmartPlaylist.ScheduledTasks { _logger.LogDebug("- {0}", asm); } foreach (SmartPlaylistDto dto in await _store.GetAllSmartPlaylistsAsync()) { + if (!dto.Enabled) { + continue; + } var changedDto = false; if (dto.Playlists.Length == 0) { dto.Playlists = _userManager.UsersIds.Select(x => new SmartPlaylistLinkDto {