mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 00:14:39 -05:00
if no song dont go to / music lmafo
This commit is contained in:
parent
b5b35209af
commit
a2cc2a309b
1 changed files with 4 additions and 1 deletions
|
@ -284,7 +284,10 @@ app.get("/music", async function (req, res) {
|
|||
{ title: json.Title, artist: json.Channel.Name.replace("- Topic", "") },
|
||||
1000
|
||||
);
|
||||
|
||||
|
||||
if (!song) {
|
||||
res.redirect(`/watch?v=${v}`);
|
||||
}
|
||||
var lyrics = await musicInfo
|
||||
.searchLyrics({ title: song.title, artist: song.artist })
|
||||
.catch(() => null);
|
||||
|
|
Loading…
Reference in a new issue