mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-14 18:08:49 +01:00
add description check :p
This commit is contained in:
parent
f129b60395
commit
cfb0176d21
1 changed files with 3 additions and 7 deletions
|
@ -72,7 +72,7 @@ async function video(v) {
|
||||||
if (v == null) return "Gib ID";
|
if (v == null) return "Gib ID";
|
||||||
|
|
||||||
let nightlyRes;
|
let nightlyRes;
|
||||||
var desc;
|
var desc = "";
|
||||||
|
|
||||||
var inv_comments = await fetch(`${config.invapi}/comments/${v}`).then((res) =>
|
var inv_comments = await fetch(`${config.invapi}/comments/${v}`).then((res) =>
|
||||||
res.text()
|
res.text()
|
||||||
|
@ -98,11 +98,7 @@ async function video(v) {
|
||||||
summary_.title !== "Not found." ? summary_ : "none"
|
summary_.title !== "Not found." ? summary_ : "none"
|
||||||
);
|
);
|
||||||
|
|
||||||
if (a.Channel?.Contents.ItemSection.About) {
|
desc = a.Channel?.Contents?.ItemSection?.About?.Description;
|
||||||
desc = a.Channel?.Contents.ItemSection.About.Description;
|
|
||||||
} else {
|
|
||||||
desc = "No about section";
|
|
||||||
}
|
|
||||||
|
|
||||||
const data = await fetcher(v);
|
const data = await fetcher(v);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue