Skip to content

Commit 7e170a8

Browse files
committed
Use audio bare for S1 support
1 parent d769ec0 commit 7e170a8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/services/getMediaURI.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,11 @@ const getMediaURI = (type, id, callback) => {
3333
const headers = [];
3434

3535
if (/\/archive\.org/.test(trackUrl)) {
36-
trackUrl = trackUrl.replace('://archive.org/', '://audio.relisten.net/archive.org/');
36+
trackUrl = trackUrl.replace('://archive.org/', '://audio-bare.relisten.net/archive.org/');
3737
}
3838

39-
// wat.
40-
// for some reason https doesn't work with cloudflare or phish.in and sonos.
41-
// meh
4239
if (slug === 'phish') {
43-
trackUrl = trackUrl.replace('phish.in/audio', 'phishin-proxy.relisten.net/phishin-audio');
40+
trackUrl = trackUrl.replace('://phish.in', '://audio-bare.relisten.net/phish.in');
4441
}
4542

4643
// sonos requires a urlencode, but we can't encode the slashes
@@ -49,7 +46,10 @@ const getMediaURI = (type, id, callback) => {
4946
if (slug === 'wsp') {
5047
// this is important, auto encodes url
5148
const url = new URL(
52-
trackUrl.replace('www.panicstream.com/streams', 'phishin-proxy.relisten.net/panicstream')
49+
trackUrl.replace(
50+
'://www.panicstream.com',
51+
'://audio-bare.relisten.net/www.panicstream.com'
52+
)
5353
);
5454
trackUrl = url.href;
5555

0 commit comments

Comments
 (0)