diff --git a/server.js b/server.js index b8a1a0a2..d02c1d76 100644 --- a/server.js +++ b/server.js @@ -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);