mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-16 21:02:57 +08:00
fix(hust): preserve article titles and exclude navigation headings
This commit is contained in:
@@ -37,7 +37,7 @@ export const handler = async (ctx) => {
|
||||
|
||||
items = await Promise.all(
|
||||
items.map((item) =>
|
||||
cache.tryGet(item.link!, async () => {
|
||||
cache.tryGet(`hust:gs:article:v2:${item.link}`, async () => {
|
||||
try {
|
||||
const { data: detailResponse } = await got(item.link);
|
||||
|
||||
@@ -45,7 +45,7 @@ export const handler = async (ctx) => {
|
||||
|
||||
const description = $$('div.v_news_content').html();
|
||||
|
||||
item.title = $$('div.article_title h1, h5').text();
|
||||
item.title = $$('div.article_title h1, .show01 > h5').text() || item.title;
|
||||
item.description = description;
|
||||
item.content = {
|
||||
html: description,
|
||||
|
||||
Reference in New Issue
Block a user