From 8b768a299092e5bb794601bb5fba49f64897da76 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Wed, 10 Dec 2025 16:15:04 -0600 Subject: [PATCH] allow playlists to have no items included in epg (#2713) --- CHANGELOG.md | 1 + .../MediaCollections/Queries/GetPlaylistItemsHandler.cs | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd885f9db..0d2656088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed - No longer round framerate to nearest integer when normalizing framerate +- Allow playlists to have no items included in EPG ## [25.9.0] - 2025-11-29 ### Added diff --git a/ErsatzTV.Application/MediaCollections/Queries/GetPlaylistItemsHandler.cs b/ErsatzTV.Application/MediaCollections/Queries/GetPlaylistItemsHandler.cs index 995777683..e741ba2b1 100644 --- a/ErsatzTV.Application/MediaCollections/Queries/GetPlaylistItemsHandler.cs +++ b/ErsatzTV.Application/MediaCollections/Queries/GetPlaylistItemsHandler.cs @@ -57,14 +57,6 @@ public class GetPlaylistItemsHandler(IDbContextFactory dbContextFacto .ThenInclude(mm => mm.Artwork) .ToListAsync(cancellationToken); - if (allItems.All(bi => !bi.IncludeInProgramGuide)) - { - foreach (PlaylistItem bi in allItems) - { - bi.IncludeInProgramGuide = true; - } - } - return allItems.Map(Mapper.ProjectToViewModel).ToList(); } }