git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 7bc5670f authored by Matt Lee's avatar Matt Lee

Fix stream/download links

parent 1433d9fc
Pipeline #40 skipped
...@@ -10,7 +10,8 @@ function resolve_external_url($url) { ...@@ -10,7 +10,8 @@ function resolve_external_url($url) {
function process_jamendo_url($url) { function process_jamendo_url($url) {
if (substr($url, 10, 13) == 'track/stream/') { if (substr($url, 10, 13) == 'track/stream/') {
$id = substr($url, 23); $id = substr($url, 23);
return 'http://gigue.rrbone.net/' . $id . '.ogg2'; // return 'http://gigue.rrbone.net/' . $id . '.ogg2';
return 'https://mp3l.jamendo.com/?trackid=' . $id . '&format=ogg2';
} }
if (substr($url, 10, 15) == 'album/download/') { if (substr($url, 10, 15) == 'album/download/') {
......
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