summaryrefslogtreecommitdiffstats
path: root/lib/class/scrobbler.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/scrobbler.class.php')
-rw-r--r--lib/class/scrobbler.class.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/class/scrobbler.class.php b/lib/class/scrobbler.class.php
index e5ab6f4d..37f25112 100644
--- a/lib/class/scrobbler.class.php
+++ b/lib/class/scrobbler.class.php
@@ -146,7 +146,7 @@ class scrobbler {
"\n---------\nExpeceted:" . print_r($response,1);
return false;
}
-
+debug_event('ZZZZZ',print_r($split_response,1),1);
$data['challenge'] = $response[1];
return $data;
@@ -219,6 +219,10 @@ class scrobbler {
return false;
}
+ // Need to debug this
+ $string = "POST ".$this->submit_url." HTTP/1.0\r\n"."Host: ".$this->submit_host."\r\n"."Accept: */*\r\n"."User-Agent: Ampache/3.6\r\n".
+ "Content-type: application/x-www-form-urlencoded\r\n"."Content-length: ".strlen($query_str)."\r\n\r\n".$query_str."\r\n\r\n";
+ debug_event('SCROBBLER',$string,1);
$action = "POST ".$this->submit_url." HTTP/1.0\r\n";
fwrite($as_socket, $action);
fwrite($as_socket, "Host: ".$this->submit_host."\r\n");