diff options
Diffstat (limited to 'lib/class/scrobbler.class.php')
-rw-r--r-- | lib/class/scrobbler.class.php | 4 |
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 |