1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +02:00

api fixes, added librefm scrobbler (untested) and fixed minor error in header file with rtl vs ltr languages also removed dead RioPlayer plugin

This commit is contained in:
Karl 'vollmerk' Vollmer 2009-05-18 17:34:22 +00:00
parent 5bd82180f5
commit d84e62dba7
10 changed files with 286 additions and 106 deletions

View file

@ -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);