mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-11 10:08:16 +01:00
add try catch :p
This commit is contained in:
parent
2b0f354414
commit
0d02f484c4
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ async function video(v) {
|
||||||
json: data?.video?.Player,
|
json: data?.video?.Player,
|
||||||
video: await fetch(`${config.tubeApi}video?v=${v}`)
|
video: await fetch(`${config.tubeApi}video?v=${v}`)
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((xml) => getJson(toJson(xml))),
|
.then((xml) => getJson(toJson(xml)))
|
||||||
|
.catch(" "),
|
||||||
vid,
|
vid,
|
||||||
comments,
|
comments,
|
||||||
engagement: data.engagement,
|
engagement: data.engagement,
|
||||||
|
|
Loading…
Reference in a new issue