mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 17:29:02 +01:00
refactor code :3
This commit is contained in:
parent
b60e06a9cd
commit
43acfe3352
1 changed files with 4 additions and 1 deletions
|
@ -86,6 +86,9 @@ async function video(v) {
|
||||||
summary_.title !== "Not found." ? summary_ : "none"
|
summary_.title !== "Not found." ? summary_ : "none"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const desc = a.Channel?.Contents.ItemSection.About.Description;
|
||||||
|
|
||||||
|
|
||||||
const data = await fetcher(v);
|
const data = await fetcher(v);
|
||||||
|
|
||||||
const nightlyJsonData = getJson(nightlyRes);
|
const nightlyJsonData = getJson(nightlyRes);
|
||||||
|
@ -96,7 +99,7 @@ async function video(v) {
|
||||||
comments,
|
comments,
|
||||||
engagement: data.engagement,
|
engagement: data.engagement,
|
||||||
wiki: summary,
|
wiki: summary,
|
||||||
desc: a.Channel.Contents.ItemSection.About.Description,
|
desc: desc,
|
||||||
color: await getColors(
|
color: await getColors(
|
||||||
`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`
|
`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`
|
||||||
).then((colors) => colors[0].hex()),
|
).then((colors) => colors[0].hex()),
|
||||||
|
|
Loading…
Reference in a new issue