Skip to content

Commit

Permalink
Merge pull request #1168 from darrell-k/user-defined-roles-in-album-list
Browse files Browse the repository at this point in the history
Include user-defined roles when browsing from combined artist list
  • Loading branch information
michaelherger authored Sep 23, 2024
2 parents 7163089 + 1144090 commit 2a7f7ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slim/Control/Queries.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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, $_;
}
}
Expand Down

0 comments on commit 2a7f7ad

Please sign in to comment.