Skip to content

Commit 811f876

Browse files
committed
1 parent 5e51ebd commit 811f876

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/assets/javascripts/services.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,11 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
548548
return `${randomInstance}`
549549
}
550550
case "tuboSoundcloud": {
551-
if (url.pathname.match(/\/user[^\/]+(\/$|$)/)) {
551+
if (url.pathname == '/') return `${randomInstance}?kiosk?serviceId=1`
552+
if (url.pathname.match(/^\/[^\/]+(\/$|$)/)) {
552553
return `${randomInstance}/channel?url=${encodeURIComponent(url.href)}`
553554
}
554-
if (url.pathname.match(/\/user[^\/]+\/[^\/]+/)) {
555+
if (url.pathname.match(/^\/[^\/]+\/[^\/]+/)) {
555556
return `${randomInstance}/stream?url=${encodeURIComponent(url.href)}`
556557
}
557558
return `${randomInstance}`

0 commit comments

Comments
 (0)