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

Commit 5e2cc6fd authored by Mike Sheldon's avatar Mike Sheldon

Resolve external streamurls properly for xspf playlists

parent 88ad56cb
......@@ -22,6 +22,7 @@ require_once('../database.php');
require_once('../templating.php');
require_once('../data/Track.php');
require_once('../data/Server.php');
require_once('../utils/resolve-external.php');
require_once('radio-utils.php');
// These deaths should probably just return an empty playlist
......@@ -82,7 +83,7 @@ for($i=0; $i<count($tr); $i++) {
$duration = $row['duration'] * 1000;
}
$radiotracks[$i]['location'] = $row['streamurl'];
$radiotracks[$i]['location'] = resolve_external_url($row['streamurl']);
$radiotracks[$i]['title'] = $row['name'];
$radiotracks[$i]['id'] = "0000";
$radiotracks[$i]['album'] = $album->name;
......
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