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

Commit 02e317f5 authored by Mike Sheldon's avatar Mike Sheldon

Explicitly support specific artist radio

parent 2c64c29d
......@@ -24,10 +24,14 @@ function radio_title_from_url($url) {
$tag = $regs[2];
return 'Libre.fm ' . ucwords($tag) . ' Tag Radio';
}
if(ereg('l(ast|ibre)fm://artist/(.*)/similarartists', $url, $regs)) {
if(ereg('l(ast|ibre)fm://artist/(.*)', $url, $regs)) {
$artist = $regs[2];
return 'Libre.fm ' . $artist . ' Artist Radio';
}
if(ereg('l(ast|ibre)fm://artist/(.*)/similarartists', $url, $regs)) {
$artist = $regs[2];
return 'Libre.fm ' . $artist . ' Similar Artist Radio';
}
if(ereg('l(ast|ibre)fm://user/(.*)/loved', $url, $regs)) {
$user = $regs[2];
return 'Libre.fm ' . $user . '\'s Loved Radio';
......
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