From eeb50942f74457d7cc3c010ef22b8f8950ccbfc9 Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 7 Nov 2023 09:34:14 +0000 Subject: [PATCH] try undici --- p/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p/server.js b/p/server.js index a5e0f676..10235eb9 100644 --- a/p/server.js +++ b/p/server.js @@ -103,7 +103,6 @@ app.get("/", (req, res) => { }); const apiUrls = [ - "https://returnyoutubedislikeapi.com/votes?videoId=", "https://ipv6-t.poketube.fun/api?v=", "https://prod-poketube.testing.poketube.fun/api?v=" ]; @@ -112,6 +111,8 @@ const apiUrls = [ const cache = {}; app.get("/api", async (req, res) => { +const { fetch } = await import("undici") + try { const cacheKey = req.query.v;