1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 09:14:39 -05:00
This commit is contained in:
Ashley 2022-07-13 13:48:30 +03:00 committed by GitHub
parent 772a76aa27
commit b8131740eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,10 @@ app.get("/download", async function (req, res) {
engagement: engagement,
k: k,
video: json,
date: moment(k.Video.uploadDate).format("LL")
date: moment(k.Video.uploadDate).format("LL"),
color: await getColors(
`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`
).then((colors) => colors[0].hex()),
});
});