1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 17:14:38 -05:00

add second color

This commit is contained in:
Ashley 2022-11-24 20:13:32 +00:00
parent 101d38175e
commit 42b4ddc948

View file

@ -97,8 +97,11 @@ async function video(v) {
wiki: summary, wiki: summary,
desc: desc, desc: desc,
color: await getColors( color: await getColors(
`https://i.ytimg.com/vi/${v}/maxresdefault.jpg` `https://i.ytimg.com/vi/${v}/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw`
).then((colors) => colors[0].hex()), ).then((colors) => colors[0].hex()),
color2: await getColors(
`https://i.ytimg.com/vi/${v}/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw`
).then((colors) => colors[1].hex()),
}; };
} }