mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 18:49:04 +01:00
fix an issue
This commit is contained in:
parent
63362949bc
commit
e78350b64b
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 v = req.query.v;
|
||||||
var e = req.query.e;
|
var e = req.query.e;
|
||||||
var fetching = await fetcher(v)
|
var fetching = await fetcher(v)
|
||||||
|
const url = fetching.video.Player.Formats.Format[1].URL
|
||||||
|
/*
|
||||||
const j = fetching.video.Player.Formats.Format,
|
const j = fetching.video.Player.Formats.Format,
|
||||||
j_ = typeof j === 'object' && j !== null
|
j_ = typeof j === 'object' && j !== null
|
||||||
? j
|
? j
|
||||||
|
@ -54,7 +56,7 @@ let url;
|
||||||
|
|
||||||
if (j_.URL != undefined)
|
if (j_.URL != undefined)
|
||||||
url = j_.URL;
|
url = j_.URL;
|
||||||
|
*/
|
||||||
const json = fetching.video.Player
|
const json = fetching.video.Player
|
||||||
const engagement = fetching.engagement
|
const engagement = fetching.engagement
|
||||||
const lyrics = await lyricsFinder(json.Title);
|
const lyrics = await lyricsFinder(json.Title);
|
||||||
|
|
Loading…
Reference in a new issue