Update src/libpoketube/init/pages-channel-and-download.js

This commit is contained in:
ashley 2024-08-20 22:39:42 +00:00
parent 1ce1bfa7aa
commit 8a67797707

View file

@ -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=";
} }