From d27f4a34f39fceacd0ca17f176a634ee03f106df Mon Sep 17 00:00:00 2001 From: Theo Sun Date: Wed, 10 Jul 2024 22:22:21 +0800 Subject: [PATCH] chore: update title --- lib/customize/hf/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/customize/hf/index.js b/lib/customize/hf/index.js index 6ac36697c2e668..1e7d3a64e415cb 100644 --- a/lib/customize/hf/index.js +++ b/lib/customize/hf/index.js @@ -13,9 +13,8 @@ const endpoint = createGenericEndpoint({ .slice(0, 5) .map((item) => "https://huggingface.co" + $(item).attr("href")), contentExtractor: async ($) => { - const translate = require("@/utils/translate"); const data = JSON.parse($("main section div.contents").attr("data-props")); - const title = await translate(data.paper.title.replace(/\n/g, "")); + const title = data.paper.title.replace(/\n/g, ""); const summary = data.paper.summary; const description = markdownToHtml(`## ${data.paper.title}\n\n${summary}\n\n[Full PDF](https://arxiv.org/pdf/${data.paper.id})`); const pubDate = data.publishedOnDailyAt;