fix an issue

This commit is contained in:
Ashley 2022-03-27 07:54:39 +03:00 committed by GitHub
parent 63362949bc
commit e78350b64b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);