mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:18:29 +01:00
add try and catch to about section owo :3
This commit is contained in:
parent
517f67958c
commit
18d303abd9
1 changed files with 7 additions and 5 deletions
|
@ -122,11 +122,6 @@ async function video(v) {
|
|||
var a = "";
|
||||
}
|
||||
|
||||
const summary = await wiki
|
||||
.summary(vid.author + " ")
|
||||
.then((summary_) =>
|
||||
summary_.title !== "Not found." ? summary_ : "none"
|
||||
);
|
||||
|
||||
desc = a.Channel?.Contents?.ItemSection?.About?.Description;
|
||||
|
||||
|
@ -135,6 +130,13 @@ async function video(v) {
|
|||
const nightlyJsonData = getJson(nightlyRes);
|
||||
|
||||
try {
|
||||
|
||||
const summary = await wiki
|
||||
.summary(vid.author + " ")
|
||||
.then((summary_) =>
|
||||
summary_.title !== "Not found." ? summary_ : "none"
|
||||
);
|
||||
|
||||
const headers = {};
|
||||
|
||||
var { data } = await curly.get(`${config.tubeApi}video?v=${v}`, {
|
||||
|
|
Loading…
Reference in a new issue