Skip to content

Commit

Permalink
Merge pull request #1167 from darrell-k/1138-add-all-songs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger authored Sep 17, 2024
2 parents 57af057 + 215dd14 commit 5ebd38f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Control/Queries.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5831,7 +5831,7 @@ sub _getTagDataForTracks {

# Normalize any search parameters
my $search = $args->{search};
if ( $search && specified($search) ) {
if ( $search && specified($search) && !$args->{trackId} ) {
if ( $search =~ s/^sql=// ) {
# Raw SQL search query
$search =~ s/;//g; # strip out any attempt at combining SQL statements
Expand Down
3 changes: 3 additions & 0 deletions Slim/Menu/BrowseLibrary.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,9 @@ sub _tracks {
my $items = $results->{'titles_loop'};
$remote_library ||= $args->{'remote_library'};

my $trackIds;
foreach (@$items) {
$trackIds .= $_->{'id'} . ',';
# Map a few items that get different tags to those expected for TitleFormatter
# Currently missing composer, conductor, band because of additional cost of 'A' tag query
$_->{'ct'} = $_->{'type'};
Expand Down Expand Up @@ -1947,6 +1949,7 @@ sub _tracks {
sort => 'albumtrack',
menuStyle => 'menuStyle:allSongs',
search => 'sql=' . $sql,
track_id => $trackIds,
);

my %allSongsActions = (
Expand Down

0 comments on commit 5ebd38f

Please sign in to comment.