Commit 5784e50a authored by Mike Sheldon's avatar Mike Sheldon

Base top artists on loved tracks rather than scrobbles

parent 3f3b886c
......@@ -36,12 +36,10 @@ class Chart {
* @param int $limit The number of artists to return
* @param int $offset Skip this number of rows before returning artists
* @param bool $streamable Only return streamable artists
* @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 An array of artists ((artist, freq, artisturl) ..) or empty array in case of failure
* @return array Artists ((artist, freq, artisturl) ..) or empty array in case of failure
*/
function getTopArtists($limit = 20, $offset = 0, $streamable = False, $begin = null, $end = null, $cache = 600) {
return Server::getTopArtists($limit, $offset, $streamable, $begin, $end, null, $cache);
function getTopArtists($limit = 20, $offset = 0, $streamable = False, $cache = 600) {
return Server::getLovedArtists($limit, $offset, $streamable, null, $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