add try catch :p

This commit is contained in:
Ashley 2023-02-22 16:03:02 +00:00
parent 2b0f354414
commit 0d02f484c4

View file

@ -120,7 +120,8 @@ async function video(v) {
json: data?.video?.Player,
video: await fetch(`${config.tubeApi}video?v=${v}`)
.then((res) => res.text())
.then((xml) => getJson(toJson(xml))),
.then((xml) => getJson(toJson(xml)))
.catch(" "),
vid,
comments,
engagement: data.engagement,