diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-06 10:08:52 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-06 10:08:52 +0000 |
commit | 1c83a2ee37937c626e6e12fa7cccc045c68820ff (patch) | |
tree | 68f06c812e2e60dd57ae5da9d6497887b4178963 /contrib/plugins/Last.FM | |
parent | 31dd76b26ba3f40677d6c6c7ecef1850a1f1a823 (diff) | |
download | ampache-1c83a2ee37937c626e6e12fa7cccc045c68820ff.tar.gz ampache-1c83a2ee37937c626e6e12fa7cccc045c68820ff.tar.bz2 ampache-1c83a2ee37937c626e6e12fa7cccc045c68820ff.zip |
few more slight tweaks just incase you put a space in your username or pass
Diffstat (limited to 'contrib/plugins/Last.FM')
-rw-r--r-- | contrib/plugins/Last.FM/Lastfm.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/plugins/Last.FM/Lastfm.patch b/contrib/plugins/Last.FM/Lastfm.patch index 7b818705..78dac19b 100644 --- a/contrib/plugins/Last.FM/Lastfm.patch +++ b/contrib/plugins/Last.FM/Lastfm.patch @@ -41,8 +41,8 @@ diff -Nuar --exclude=.svn trunk/lib/class/audioscrobbler.class.php ampache/lib/c + function scrobbler($username, $password) { + + $this->error_msg = ''; -+ $this->username = $username; -+ $this->password = $password; ++ $this->username = trim($username); ++ $this->password = trim($password); + $this->challenge = ''; + $this->queued_tracks = array(); + @@ -196,7 +196,7 @@ diff -Nuar --exclude=.svn trunk/lib/class/audioscrobbler.class.php ampache/lib/c + return FALSE; + } + if(substr($response[0], 0, 6) == 'FAILED') { -+ $this->error_msg = substr($response[6], 7); ++ $this->error_msg = $response[0]; + return FALSE; + } + if(substr($response[0], 0, 7) == 'BADAUTH') { |