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

Commit a4a07091 authored by clint's avatar clint

artist radio title handling

parent 69b061f6
......@@ -24,11 +24,14 @@ function radio_title_from_url($url) {
$tag = substr($url, 20);
return "Libre.fm " . ucwords($tag) . " Tag Radio";
}
if(substr($url, 0, 21) == "librefm://globaltags/") {
$tag = substr($url, 21);
return "Libre.fm " . ucwords($tag) . " Tag Radio";
}
if(ereg("l(ast|ibre)fm://artist/(.*)/similarartists", $url, $regs)) {
$artist = $regs[2];
return "Libre.fm " . $artist . " Artist Radio";
}
return $url;
......
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