mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 15:34:38 -05:00
add second color
This commit is contained in:
parent
101d38175e
commit
42b4ddc948
1 changed files with 4 additions and 1 deletions
|
@ -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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue