From b8131740eba1e951e71f83eeca3c375baf3bbef1 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 13 Jul 2022 13:48:30 +0300 Subject: [PATCH] yes --- server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index b3446060..c143c3ef 100644 --- a/server.js +++ b/server.js @@ -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()), }); });