From d21c4dd4ef96f8b2f14c3c1e86a0a00636e4b69f Mon Sep 17 00:00:00 2001 From: Raven-tu <80778915raventu@gmail.com> Date: Thu, 18 Apr 2024 17:39:19 +0800 Subject: [PATCH] fix: bilibili cache issue and close puppeteer after getting cookie (#15282) --- lib/routes/bilibili/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/bilibili/cache.ts b/lib/routes/bilibili/cache.ts index 86699ef7e..01f58714b 100644 --- a/lib/routes/bilibili/cache.ts +++ b/lib/routes/bilibili/cache.ts @@ -27,7 +27,7 @@ const getCookie = () => { await page.goto('https://space.bilibili.com/1/dynamic'); const cookieString = await waitForRequest; logger.debug(`Got bilibili cookie: ${cookieString}`); - + await browser.close(); return cookieString; }); };