From 6ecfd818fd40216fa139a607c51fde56a9fba79d Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 11 Oct 2025 11:23:29 +0800 Subject: [PATCH] fix(route/bilibili): check subtitle permission --- 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 befd2fb61..0ff57a7c4 100644 --- a/lib/routes/bilibili/cache.ts +++ b/lib/routes/bilibili/cache.ts @@ -276,7 +276,7 @@ const getVideoSubtitle = async ( const cookie = await getCookie(); response = await getSubtitleData(cookie); - if (response?.data?.data?.subtitle?.permission === '0') { + if (response?.data?.data?.permission === '0') { const newCookie = await getCookie(true); response = await getSubtitleData(newCookie); }