mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 04:08:39 +01:00
Update src/libpoketube/init/pages-channel-and-download.js
This commit is contained in:
parent
1ce1bfa7aa
commit
8a67797707
1 changed files with 3 additions and 3 deletions
|
@ -110,14 +110,14 @@ module.exports = function (app, config, renderTemplate) {
|
|||
|
||||
if (query) {
|
||||
let redirectTo = null;
|
||||
let splitParam = "::";
|
||||
let splitParam = ":";
|
||||
|
||||
if (query.includes("youtube.com/watch?v=")) {
|
||||
redirectTo = "/watch";
|
||||
splitParam = "?v=";
|
||||
} else if (query.includes("channel:")) {
|
||||
} else if (query.includes("channel")) {
|
||||
redirectTo = "/channel?id=";
|
||||
} else if (query.includes("video:")) {
|
||||
} else if (query.includes("video")) {
|
||||
redirectTo = "/watch?v=";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue