This commit is contained in:
ManeraKai 2023-11-25 12:27:09 +03:00
parent 5e51ebd95a
commit 811f8766ee
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 3 additions and 2 deletions

View File

@ -548,10 +548,11 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
return `${randomInstance}` return `${randomInstance}`
} }
case "tuboSoundcloud": { case "tuboSoundcloud": {
if (url.pathname.match(/\/user[^\/]+(\/$|$)/)) { if (url.pathname == '/') return `${randomInstance}?kiosk?serviceId=1`
if (url.pathname.match(/^\/[^\/]+(\/$|$)/)) {
return `${randomInstance}/channel?url=${encodeURIComponent(url.href)}` return `${randomInstance}/channel?url=${encodeURIComponent(url.href)}`
} }
if (url.pathname.match(/\/user[^\/]+\/[^\/]+/)) { if (url.pathname.match(/^\/[^\/]+\/[^\/]+/)) {
return `${randomInstance}/stream?url=${encodeURIComponent(url.href)}` return `${randomInstance}/stream?url=${encodeURIComponent(url.href)}`
} }
return `${randomInstance}` return `${randomInstance}`