Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-fm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-fm
Commits
7bc5670f
Commit
7bc5670f
authored
Jun 14, 2016
by
Matt Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stream/download links
parent
1433d9fc
Pipeline
#40
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
resolve-external.php
nixtape/utils/resolve-external.php
+2
-1
No files found.
nixtape/utils/resolve-external.php
View file @
7bc5670f
...
@@ -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/'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment