Skip to content

Commit 1fca752

Browse files
committed
remove ps
1 parent f1b5f1a commit 1fca752

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/services/getMediaURI.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,6 @@ const getMediaURI = (type, id, callback) => {
4040
trackUrl = trackUrl.replace('://phish.in', '://audio-bare.relisten.net/phish.in');
4141
}
4242

43-
// sonos requires a urlencode, but we can't encode the slashes
44-
// encodeURI encodes a fully formed URL and won't encode the slashes
45-
// also use relisten proxy
46-
if (slug === 'wsp') {
47-
// this is important, auto encodes url
48-
const url = new URL(
49-
trackUrl.replace(
50-
'://www.panicstream.com',
51-
'://audio-bare.relisten.net/www.panicstream.com'
52-
)
53-
);
54-
trackUrl = url.href;
55-
56-
headers.push({
57-
httpHeader: {
58-
header: 'Referer',
59-
value: 'https://www.panicstream.com',
60-
},
61-
});
62-
}
63-
6443
winston.info('MP3 prepped', {
6544
getMediaURIResult: trackUrl, // 'http://192.168.0.101:3001/foo.mp3', //trackUrl,
6645
httpHeaders: headers,

src/services/getMetadata.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const ALBUM_ART_CDN = IS_PRODUCTION ? 'https://sonos-cdn.relisten.net' : 'http:/
99

1010
const artistWrapper = (name: string) => {
1111
if (name === 'Phish') return 'Phish (by Phish.in)';
12-
else if (name === 'Widespread Panic') return 'Widespread Panic (by PanicStream)';
1312

1413
return name;
1514
};

0 commit comments

Comments
 (0)