mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 14:48:33 +01:00
update music stuff :p
This commit is contained in:
parent
1bdee30056
commit
50409069b4
1 changed files with 9 additions and 9 deletions
|
@ -176,6 +176,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
const isvld = await core.isvalidvideo(v);
|
const isvld = await core.isvalidvideo(v);
|
||||||
if (!v) res.redirect("/");
|
if (!v) res.redirect("/");
|
||||||
|
|
||||||
var secure;
|
var secure;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -389,8 +390,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const n = await info.text();
|
const n = await info.text();
|
||||||
const ip = JSON.parse(n);
|
const ip = JSON.parse(n);
|
||||||
|
|
||||||
if (!v) res.redirect("/");
|
if (!v) {
|
||||||
|
res.redirect("/discover?tab=music");
|
||||||
|
} else {
|
||||||
var fetching = await fetcher(v);
|
var fetching = await fetcher(v);
|
||||||
|
|
||||||
const json = fetching.video.Player;
|
const json = fetching.video.Player;
|
||||||
|
@ -405,7 +407,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//video
|
//video
|
||||||
var url = `https://tube.kuylar.dev/proxy/media/${v}/18`;
|
var url = `https://tube.kuylar.dev/proxy/media/${v}/22`;
|
||||||
|
|
||||||
// encryption
|
// encryption
|
||||||
const url_e =
|
const url_e =
|
||||||
|
@ -438,14 +440,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const lyrics = await lyricsFinder(song.artist + song.title);
|
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 = "";
|
var ly = "";
|
||||||
|
|
||||||
if (lyrics === null) {
|
|
||||||
ly = "This Is Where I'd Put The songs lyrics. IF IT HAD ONE ";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lyrics) {
|
if (lyrics) {
|
||||||
ly = lyrics.replace(/\n/g, " <br> ");
|
ly = lyrics.replace(/\n/g, " <br> ");
|
||||||
}
|
}
|
||||||
|
@ -472,5 +470,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
optout: t,
|
optout: t,
|
||||||
lyrics: ly,
|
lyrics: ly,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue