[Slim-Checkins] r10763 - in /branches/6.5/server/Slim:
Control/Queries.pm Schema/ResultSet/Playlist.pm
fred at svn.slimdevices.com
fred at svn.slimdevices.com
Mon Nov 27 01:19:45 PST 2006
Author: fred
Date: Mon Nov 27 01:19:45 2006
New Revision: 10763
URL: http://svn.slimdevices.com?rev=10763&view=rev
Log:
Fix searches for playlists (was not using LIKE) and items returned for songs (was including playlists)
Modified:
branches/6.5/server/Slim/Control/Queries.pm
branches/6.5/server/Slim/Schema/ResultSet/Playlist.pm
Modified: branches/6.5/server/Slim/Control/Queries.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Slim/Control/Queries.pm?rev=10763&r1=10762&r2=10763&view=diff
==============================================================================
--- branches/6.5/server/Slim/Control/Queries.pm (original)
+++ branches/6.5/server/Slim/Control/Queries.pm Mon Nov 27 01:19:45 2006
@@ -1673,10 +1673,9 @@
$where->{'me.year'} = $year;
}
- # we don't want client playlists
- $where->{'me.content_type'} = {'!=', 'cpl'};
- # we don't want transporter sources...
- $where->{'me.content_type'} = {'!=', 'src'};
+ # we don't want client playlists (Now playing), transporter sources,
+ # or playlists.
+ $where->{'me.content_type'} = {'!=', ['cpl', 'src', 'ssp']};
# Manage joins
Modified: branches/6.5/server/Slim/Schema/ResultSet/Playlist.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Slim/Schema/ResultSet/Playlist.pm?rev=10763&r1=10762&r2=10763&view=diff
==============================================================================
--- branches/6.5/server/Slim/Schema/ResultSet/Playlist.pm (original)
+++ branches/6.5/server/Slim/Schema/ResultSet/Playlist.pm Mon Nov 27 01:19:45 2006
@@ -107,7 +107,7 @@
};
if (defined $search) {
- $find->{'titlesearch'} = $search;
+ $find->{'titlesearch'} = {'like' => $search};
}
# Add search criteria for playlists
More information about the checkins
mailing list