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

Commit 158c5b3a authored by Mike Sheldon's avatar Mike Sheldon

Add title for recommended radio stream

parent f3be2aff
......@@ -43,6 +43,10 @@ function radio_title_from_url($url) {
$user = $regs[2];
return 'Libre.fm ' . ucwords($user) . '\'s Loved Radio';
if(ereg('l(ast|ibre)fm://user/(.*)/recommended', $url, $regs)) {
$user = $regs[2];
return 'Libre.fm ' . ucwords($user) . '\'s Recommended Radio';
if(ereg('l(ast|ibre)fm://community/loved', $url, $regs)) {
return 'Libre.fm Community\'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