summaryrefslogtreecommitdiffstats
path: root/contrib/plugins/Last.FM/Lastfm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/plugins/Last.FM/Lastfm.patch')
-rw-r--r--contrib/plugins/Last.FM/Lastfm.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/plugins/Last.FM/Lastfm.patch b/contrib/plugins/Last.FM/Lastfm.patch
index 78dac19b..37fa0e0f 100644
--- a/contrib/plugins/Last.FM/Lastfm.patch
+++ b/contrib/plugins/Last.FM/Lastfm.patch
@@ -232,19 +232,19 @@ diff -Nuar --exclude=.svn trunk/lib/class/user.class.php ampache/lib/class/user.
+ /* Record this play to LastFM */
+ if ($this->prefs['lastfm_user'] AND $this->prefs['lastfm_pass']) {
-+ $song->format_song();
++ $song_info->format_song();
+ $lastfm = new scrobbler($this->prefs['lastfm_user'],$this->prefs['lastfm_pass']);
+ /* Attempt handshake */
+ if ($lastfm->handshake()) {
+ if (!$lastfm->queue_track($song_info->f_artist_full,$song_info->f_album_full,$song_info->title,time(),$song_info->time)) {
-+ debug_event('LastFM','Error: Queue Failed' . $lastfm->error_msg,'3');
++ debug_event('LastFM','Error: Queue Failed: ' . $lastfm->error_msg,'3');
+ }
+ if (!$lastfm->submit_tracks()) {
-+ debug_event('LastFM','Error Submit Failed' . $lastfm->error_msg,'3');
++ debug_event('LastFM','Error Submit Failed: ' . $lastfm->error_msg,'3');
+ }
+ } // if handshake
+ else {
-+ debug_event('LastFM','Error: Handshake failed with LastFM' . $lastfm->error_msg,'3');
++ debug_event('LastFM','Error: Handshake failed with LastFM: ' . $lastfm->error_msg,'3');
+ }
+ } // record to LastFM
+ else {