Skip to content

Commit

Permalink
Different limits for Smart Playlists
Browse files Browse the repository at this point in the history
#208 Increase number of tracks in Smart Playlists
  • Loading branch information
Thomas Marx authored Jun 19, 2017
1 parent d507b21 commit 85af988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 85af988

Please sign in to comment.