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

Commit 87b1eafc authored by Jonas Haraldsson's avatar Jonas Haraldsson

add TODO

We need to clean up expired scrobble sessions somewhere in nixtape,
currently only done in gnukebox and that will eventually go away
parent bf58c8b4
......@@ -922,6 +922,7 @@ class Server {
* @return string Scrobble session ID
static function getScrobbleSession($userid, $api_key = null, $expire_limit = 86400) {
//TODO Add code to remove expired sessions (this is currently only done in gnukebox)
global $adodb;
$query = 'SELECT sessionid FROM Scrobble_Sessions WHERE userid = ? AND expires > ?';
$params = array( (int) $userid, time());
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