Merge pull request #794 from ChunkyProgrammer/fix-freetube-urls

Fix FreeTube for non-video urls
This commit is contained in:
ManeraKai 2023-08-05 16:28:53 +03:00 committed by GitHub
commit 6c169d0706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {