From 239a07a3e2b174e763a01e2f4462928867e767b2 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 19 Aug 2025 17:24:01 +0200 Subject: [PATCH] Enhance flatten_groups function to preserve Trakt group status during merging - Updated the `flatten_groups` function to ensure that if either of the merged groups is a Trakt group, the resulting group retains the Trakt status. --- backend/src/processing/processor/playlist.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/processing/processor/playlist.rs b/backend/src/processing/processor/playlist.rs index 63338a40c..5fde17dd9 100644 --- a/backend/src/processing/processor/playlist.rs +++ b/backend/src/processing/processor/playlist.rs @@ -455,6 +455,8 @@ fn flatten_groups(playlistgroups: Vec) -> Vec { std::collections::hash_map::Entry::Occupied(o) => { if let Some(pl_group) = sort_order.get_mut(*o.get()) { pl_group.channels.extend(group.channels); + // Preserve Trakt group status: if either group is a Trakt group, the merged group should be too + pl_group.is_trakt_group = pl_group.is_trakt_group || group.is_trakt_group; } } }