From a9da6a6fa22325ba0dfecd4d46ae23305473796f Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Sat, 2 Apr 2011 00:22:55 -0400 Subject: Reworked search Still has tentacles and should have been integrated into the existing API/Browse implementation better, but it's functional. --- browse.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'browse.php') diff --git a/browse.php b/browse.php index 91f6e30a..62f4cdfd 100644 --- a/browse.php +++ b/browse.php @@ -55,6 +55,7 @@ switch ($_REQUEST['action']) { case 'album': case 'artist': case 'playlist': + case 'smartplaylist': case 'live_stream': case 'video': case 'song': @@ -108,6 +109,11 @@ switch($_REQUEST['action']) { $browse->set_filter('playlist_type','1'); $browse->show_objects(); break; + case 'smartplaylist': + $browse->set_sort('type', 'ASC'); + $browse->set_filter('playlist_type','1'); + $browse->show_objects(); + break; case 'video': $browse->set_sort('title','ASC'); $browse->show_objects(); -- cgit