summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-06 08:40:00 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-06 08:40:00 +0000
commitfeae56b4d308f2411b5c2bb5e644efe0dc3d5cb1 (patch)
tree4a27a3fcd1450fba6c8fbf7871b45b09f7293256 /lib/class
parente07f720bbcb5aa4f1539a0edeeb8c737ae2abf94 (diff)
downloadampache-feae56b4d308f2411b5c2bb5e644efe0dc3d5cb1.tar.gz
ampache-feae56b4d308f2411b5c2bb5e644efe0dc3d5cb1.tar.bz2
ampache-feae56b4d308f2411b5c2bb5e644efe0dc3d5cb1.zip
sync lastfm fix to trunk
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/scrobbler.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/scrobbler.class.php b/lib/class/scrobbler.class.php
index a90fc773..352d51ae 100644
--- a/lib/class/scrobbler.class.php
+++ b/lib/class/scrobbler.class.php
@@ -107,7 +107,7 @@ class scrobbler {
return false;
}
- if(preg_match('/http:\/\/(.*):(\d+)(.*)/', $response[3], $matches)) {
+ if(preg_match('/http:\/\/(.*):(\d+)(.*)/', $response[2], $matches)) {
$this->submit_host = $matches[1];
$this->submit_port = $matches[2];
$this->submit_url = $matches[3];
@@ -116,7 +116,7 @@ class scrobbler {
return false;
}
- $this->challenge = $response[2];
+ $this->challenge = $response[1];
return true;
} // handshake