Skip to content

Commit

Permalink
Merge pull request #1175 from darrell-k/include-track-artists
Browse files Browse the repository at this point in the history
Include track artists in combined artist list
  • Loading branch information
michaelherger authored Oct 14, 2024
2 parents c4019e1 + 7ad6065 commit e6c043d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Slim/Control/Queries.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ sub artistsQuery {
$roles = [ map { Slim::Schema::Contributor->typeToRole($_) } split(/,/, $roleID ) ];
}
elsif ($prefs->get('useUnifiedArtistsList')) {
$roles = Slim::Schema->artistOnlyRoles();
$roles = Slim::Schema->artistOnlyRoles('TRACKARTIST');
}
else {
$roles = [ map { Slim::Schema::Contributor->typeToRole($_) } Slim::Schema::Contributor->contributorRoles() ];
Expand Down
2 changes: 1 addition & 1 deletion Slim/Schema/ResultSet/Contributor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sub countTotal {

my $cond = {};
my @joins = ();
my $roles = $prefs->get('useUnifiedArtistsList') ? Slim::Schema->artistOnlyRoles : [ Slim::Schema::Contributor->contributorRoleIds ];
my $roles = $prefs->get('useUnifiedArtistsList') ? Slim::Schema->artistOnlyRoles('TRACKARTIST') : [ Slim::Schema::Contributor->contributorRoleIds ];

# The user may not want to include all the composers / conductors
if ($roles) {
Expand Down
2 changes: 1 addition & 1 deletion Slim/Web/Pages/Search.pm
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ sub _initActiveRoles {
$params->{'search'}->{'contributor_namesearch'}->{'active' . $_} = 1 if $params->{'search.contributor_namesearch.active' . $_};
}

$params->{'search'}->{'contributor_namesearch'} = { map { ('active' . $_) => 1 } @{ Slim::Schema->artistOnlyRoles } } unless keys %{$params->{'search'}->{'contributor_namesearch'}};
$params->{'search'}->{'contributor_namesearch'} = { map { ('active' . $_) => 1 } @{ Slim::Schema->artistOnlyRoles('TRACKARTIST') } } unless keys %{$params->{'search'}->{'contributor_namesearch'}};
}

sub _getSavedSearches {
Expand Down

0 comments on commit e6c043d

Please sign in to comment.