Merge pull request #794 from ChunkyProgrammer/fix-freetube-urls
Fix FreeTube for non-video urls
This commit is contained in:
commit
6c169d0706
|
@ -155,7 +155,7 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
return url.href.replace(/^https?:\/{2}/, "yattee://")
|
return url.href.replace(/^https?:\/{2}/, "yattee://")
|
||||||
}
|
}
|
||||||
case "freetube": {
|
case "freetube": {
|
||||||
return `freetube://https://youtu.be${url.pathname}${url.search}`.replace(/watch\?v=/, "")
|
return 'freetube://' + url.href
|
||||||
}
|
}
|
||||||
case "poketube": {
|
case "poketube": {
|
||||||
if (url.pathname.startsWith('/channel')) {
|
if (url.pathname.startsWith('/channel')) {
|
||||||
|
|
Loading…
Reference in New Issue