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

Commit f146de3a authored by clint's avatar clint

don't tune to "bad" stations

parent b0a6d0ad
......@@ -34,10 +34,15 @@ if(!$res->numRows()) {
die("BADSESSION\n");
}
$stationname=radio_title_from_url($url);
if($stationname=="FAILED") {
die("FAILED Unavailable station\n");
}
$mdb2->query("UPDATE Radio_Sessions SET url = " . $mdb2->quote($url, "text") . " WHERE session = " . $mdb2->quote($session, "text"));
echo "response=OK\n";
echo "url=http://libre.fm\n"; // Need to parse the station request and give a real URL
echo "stationname=" . radio_title_from_url($url) ."\n";
echo "stationname=" . ($stationname) ."\n";
?>
......@@ -33,7 +33,8 @@ function radio_title_from_url($url) {
return "Libre.fm " . $artist . " Artist Radio";
}
return $url;
// return $url;
return "FAILED";
}
......
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