From aab54d2190c1524d5f5e0961d9338345ed06a6f2 Mon Sep 17 00:00:00 2001 From: imsyy Date: Tue, 5 Dec 2023 11:48:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B1=86=E7=93=A3?= =?UTF-8?q?=E6=96=B0=E7=89=87=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/douban_new.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/douban_new.js b/routes/douban_new.js index ccb5056..81e6039 100644 --- a/routes/douban_new.js +++ b/routes/douban_new.js @@ -50,7 +50,7 @@ const getData = (data) => { title: replaceTitle($(item).find("a").text(), score), desc: $(item).find("p").text(), score, - comments: $(item).find("span.pl").text().match(/\d+/)[0] ?? "", + comments: $(item).find("span.pl").text().match(/\d+/)?.[0] ?? "", pic: $(item).find("img").attr("src") ?? "", url: $(item).find("a").attr("href") ?? "", mobileUrl: `https://m.douban.com/movie/subject/${id}`,