mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 06:28:35 +01:00
fix an issue
This commit is contained in:
parent
6af75da512
commit
ffb4954421
1 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,8 @@ app.get("/watch", async function (req, res) {
|
|||
var v = req.query.v;
|
||||
var e = req.query.e;
|
||||
var fetching = await fetcher(v)
|
||||
const url = fetching.video.Player.Formats.Format[1].URL
|
||||
/*
|
||||
const j = fetching.video.Player.Formats.Format,
|
||||
j_ = typeof j === 'object' && j !== null
|
||||
? j
|
||||
|
@ -54,7 +56,7 @@ let url;
|
|||
|
||||
if (j_.URL != undefined)
|
||||
url = j_.URL;
|
||||
|
||||
*/
|
||||
const json = fetching.video.Player
|
||||
const engagement = fetching.engagement
|
||||
const lyrics = await lyricsFinder(json.Title);
|
||||
|
|
Loading…
Reference in a new issue