feat: respect enabled flag on playlists.
This commit is contained in:
parent
4d2d22e486
commit
28f3cc682e
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue