From 1144090051a5c837539c70a3772e1c5392c6448e Mon Sep 17 00:00:00 2001 From: darrell-k Date: Fri, 20 Sep 2024 21:03:46 +0100 Subject: [PATCH] Include user-defined roles when browsing from combined artist list --- Slim/Control/Queries.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Slim/Control/Queries.pm b/Slim/Control/Queries.pm index 8c1e59b8a2..8218504191 100644 --- a/Slim/Control/Queries.pm +++ b/Slim/Control/Queries.pm @@ -368,9 +368,9 @@ sub albumsQuery { elsif ($prefs->get('useUnifiedArtistsList')) { @roles = ( 'ARTIST', 'TRACKARTIST', 'ALBUMARTIST' ); - # Loop through each pref to see if the user wants to show that contributor role. + # Loop through each pref to see if the user wants to show that contributor role. Also include user-defined roles. foreach (Slim::Schema::Contributor->contributorRoles) { - if ($prefs->get(lc($_) . 'InArtists')) { + if ( $prefs->get(lc($_) . 'InArtists') || Slim::Schema::Contributor->typeToRole($_) > 20 ) { push @roles, $_; } }