From 50409069b487f6ad8dea2e69a4151020005d6fd4 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 5 Jan 2023 15:49:55 +0000 Subject: [PATCH] update music stuff :p --- src/libpoketube/init/pages-video.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 4268aa46..a0bd31fb 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -176,6 +176,7 @@ module.exports = function (app, config, renderTemplate) { const isvld = await core.isvalidvideo(v); if (!v) res.redirect("/"); + var secure; if ( @@ -389,8 +390,9 @@ module.exports = function (app, config, renderTemplate) { const n = await info.text(); const ip = JSON.parse(n); - if (!v) res.redirect("/"); - + if (!v) { + res.redirect("/discover?tab=music"); + } else { var fetching = await fetcher(v); const json = fetching.video.Player; @@ -405,7 +407,7 @@ module.exports = function (app, config, renderTemplate) { } //video - var url = `https://tube.kuylar.dev/proxy/media/${v}/18`; + var url = `https://tube.kuylar.dev/proxy/media/${v}/22`; // encryption const url_e = @@ -438,14 +440,10 @@ module.exports = function (app, config, renderTemplate) { } const lyrics = await lyricsFinder(song.artist + song.title); - if (lyrics == undefined) lyrics = "Lyrics not found"; + if (lyrics == undefined) ly = "This Is Where I'd Put The songs lyrics. IF IT HAD ONE "; + var ly = ""; - - if (lyrics === null) { - ly = "This Is Where I'd Put The songs lyrics. IF IT HAD ONE "; - } - if (lyrics) { ly = lyrics.replace(/\n/g, "
"); } @@ -472,5 +470,7 @@ module.exports = function (app, config, renderTemplate) { optout: t, lyrics: ly, }); + } }); + };