Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed Aug 8, 2024
1 parent ac0785f commit 5b5b3b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/customize/qbitai/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const endpoint = createGenericEndpoint({
const title = trimEnd($("title").text(), " | 量子位");
const pubDate = moment(`${date} ${time}`, "YYYY-MM-DD HH:mm:ss").toISOString();
const article = $("article, .article");
article.find("h1").remove();
article.find(".article_info").remove();
article.find(".zhaiyao").remove();
article.find("blockquote").remove();
for (const element of ["h1", ".article_info", ".zhaiyao", "blockquote"]) {
article.find(element).remove();
}
const description = article.html().trim();
return { title, pubDate, author, description };
},
Expand Down

0 comments on commit 5b5b3b1

Please sign in to comment.