From d84e62dba716114b799a618cbfd2b14ec61ed1f9 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 18 May 2009 17:34:22 +0000 Subject: api fixes, added librefm scrobbler (untested) and fixed minor error in header file with rtl vs ltr languages also removed dead RioPlayer plugin --- lib/class/user.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/class/user.class.php') diff --git a/lib/class/user.class.php b/lib/class/user.class.php index a8d58ed4..0b5f6c44 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -561,6 +561,14 @@ class User extends database_object { } } // end if is_installed + // Check and see if librefm is loaded and run scrobblizing + if (Plugin::is_installed('Libre.FM')) { + $librefm = new Plugin('Librefm'); + if ($lastfm->_plugin->load($this->prefs,$this->id)) { + $lastfm->_plugin->submit($song_info,$this->id); + } + } // end if is_installed + // Do this last so the 'last played checks are correct' Stats::insert('song',$song_id,$user); Stats::insert('album',$song_info->album,$user); -- cgit