From cca7975190a9d86f4ff4a9bbfd2fccb56c524228 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 24 Nov 2022 20:13:32 +0000 Subject: [PATCH] add second color --- src/libpoketube/libpoketube-core.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index a8485b1a..6788bb93 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -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()), }; }