add second color

This commit is contained in:
Ashley 2022-11-24 20:13:32 +00:00
parent a969ec7052
commit cca7975190

View file

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