From 85af988c60850020222291bb6783d022d1d1cb72 Mon Sep 17 00:00:00 2001 From: Thomas Marx Date: Mon, 19 Jun 2017 13:19:09 +0200 Subject: [PATCH] Different limits for Smart Playlists #208 Increase number of tracks in Smart Playlists --- lib/Controller/CategoryController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/CategoryController.php b/lib/Controller/CategoryController.php index a0451255..fbd656a9 100644 --- a/lib/Controller/CategoryController.php +++ b/lib/Controller/CategoryController.php @@ -269,13 +269,13 @@ private function getItemsforCatagory($category,$categoryId){ $SQL = $SQL_select . $SQL_from . "WHERE `AT`.`id` <> ? AND `AT`.`user_id` = ? ORDER BY `AT`.`file_id` DESC - Limit 25"; + Limit 100"; } elseif ($categoryId === "X3") { // Recently Played $SQL = $SQL_select . $SQL_from . "LEFT JOIN `*PREFIX*audioplayer_statistics` `AS` ON `AT`.`id` = `AS`.`track_id` WHERE `AS`.`id` <> ? AND `AT`.`user_id` = ? ORDER BY `AS`.`playtime` DESC - Limit 25"; + Limit 50"; } elseif ($categoryId === "X4") { // Most Played $SQL = $SQL_select . $SQL_from . "LEFT JOIN `*PREFIX*audioplayer_statistics` `AS` ON `AT`.`id` = `AS`.`track_id`