mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 04:17:47 +01:00
fixed the ReferenceError: Cannot access 'channel' before initialization error
This commit is contained in:
parent
a50baf9844
commit
e7b83a87ea
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ async function video(v) {
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((xml) => JSON.parse(toJson(xml)));
|
.then((xml) => JSON.parse(toJson(xml)));
|
||||||
|
|
||||||
const channel = await channel(video.Video.Channel.id);
|
const c = await channel(video.Video.Channel.id);
|
||||||
|
|
||||||
const summary = await wiki
|
const summary = await wiki
|
||||||
.summary(video.Video.Channel.Name)
|
.summary(video.Video.Channel.Name)
|
||||||
|
@ -91,7 +91,7 @@ async function video(v) {
|
||||||
video,
|
video,
|
||||||
engagement: data.engagement,
|
engagement: data.engagement,
|
||||||
wiki: summary,
|
wiki: summary,
|
||||||
desc: channel.about.Channel.Contents.ItemSection.About.Description,
|
desc: c.about.Channel.Contents.ItemSection.About.Description,
|
||||||
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