fix: 修复豆瓣新片榜

This commit is contained in:
imsyy 2023-12-05 11:48:38 +08:00
parent 85567ea638
commit aab54d2190

View File

@ -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}`,