Commit d9a26dcd authored by Jonas Haraldsson's avatar Jonas Haraldsson

fix docs

parent 3e88db1b
......@@ -148,7 +148,7 @@ class Artist {
* @param int $begin Only use scrobbles with time higher than this timestamp
* @param int $end Only use scrobbles with time lower than this timestamp
* @param int $cache Caching period in seconds
* @return array ((userid, freq) ..)
* @return array ((userid, freq, username, userurl) ..)
*/
function getTopListeners($limit = 20, $offset = 0, $streamable = False, $begin = null, $end = null, $cache = 600) {
return Server::getTopListeners($limit, $offset, $streamable, $begin, $end, $this->name, null, $cache);
......
......@@ -300,7 +300,7 @@ class Track {
* @param int $begin Only use scrobbles with time higher than this timestamp
* @param int $end Only use scrobbles with time lower than this timestamp
* @param int $cache Caching period in seconds
* @return array ((userid, freq) ..)
* @return array ((userid, freq, username, userurl) ..)
*/
function getTopListeners($limit = 20, $offset = 0, $streamable = False, $begin = null, $end = null, $cache = 600) {
return Server::getTopListeners($limit, $offset, $streamable, $begin, $end, $this->artist_name, $this->name, $cache);
......
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