We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a34f01ae authored by mattl's avatar mattl

added count, which can be manually tweaked if something goes wrong

parent d5bb7b4a
...@@ -25,7 +25,7 @@ $submissions_server = trim($response[3]); ...@@ -25,7 +25,7 @@ $submissions_server = trim($response[3]);
$r = new HTTP_Request($submissions_server); $r = new HTTP_Request($submissions_server);
$r->setMethod(HTTP_REQUEST_METHOD_POST); $r->setMethod(HTTP_REQUEST_METHOD_POST);
for($i = 1; $i < count($data); $i++) { // skip the first row for($i = 0; $i < count($data); $i++) {
$row = explode("\t", $data[$i]); $row = explode("\t", $data[$i]);
$track = $row[1]; $track = $row[1];
...@@ -42,8 +42,7 @@ for($i = 1; $i < count($data); $i++) { // skip the first row ...@@ -42,8 +42,7 @@ for($i = 1; $i < count($data); $i++) { // skip the first row
$r->sendRequest(); $r->sendRequest();
echo "Sending ". $artist . " playing " . $track . "... "; echo $i . "/" . count($data) ." sending ". $artist . " playing " . $track .".. ";
sleep(1);
echo $r->getResponseBody(); echo $r->getResponseBody();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment