mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 18:38:18 +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) {
|
if (query) {
|
||||||
let redirectTo = null;
|
let redirectTo = null;
|
||||||
let splitParam = "::";
|
let splitParam = ":";
|
||||||
|
|
||||||
if (query.includes("youtube.com/watch?v=")) {
|
if (query.includes("youtube.com/watch?v=")) {
|
||||||
redirectTo = "/watch";
|
redirectTo = "/watch";
|
||||||
splitParam = "?v=";
|
splitParam = "?v=";
|
||||||
} else if (query.includes("channel:")) {
|
} else if (query.includes("channel")) {
|
||||||
redirectTo = "/channel?id=";
|
redirectTo = "/channel?id=";
|
||||||
} else if (query.includes("video:")) {
|
} else if (query.includes("video")) {
|
||||||
redirectTo = "/watch?v=";
|
redirectTo = "/watch?v=";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue