We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 728fea46 authored by Mike Sheldon's avatar Mike Sheldon

Add default limit to getNowPlaying.

Reduce cache for user specific now playing queries as this lookup is very cheap and apps making use of realtime now playing data need info as quickly as possible.
parent e003fb5c
......@@ -201,13 +201,13 @@ class Server {
* @param int $number The maximum number of tracks to return
* @return An array of now playing data or null in case of failure
static function getNowPlaying($number, $username=false) {
static function getNowPlaying($number=1, $username=false) {
global $adodb;
try {
if($username) {
$data = $adodb->CacheGetAll(60, 'SELECT
$data = $adodb->CacheGetAll(1, 'SELECT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment