mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): 更新北极星环保网新闻详情页面结构 (#7021)
文章主题不再有#content包裹,修改为使用.newsrand选择器
This commit is contained in:
@@ -58,7 +58,7 @@ async function fetchPage(ctx, link) {
|
||||
|
||||
// 将懒加载的loading图片转换为真实图片
|
||||
pages.forEach(($p) => {
|
||||
$p('#content')
|
||||
$p('.list_detail')
|
||||
.find('img[data-echo]')
|
||||
.each((_, img) => {
|
||||
const $img = $p(img);
|
||||
@@ -68,7 +68,7 @@ async function fetchPage(ctx, link) {
|
||||
|
||||
const item = {
|
||||
title: $page('.list_detail > h1').text(),
|
||||
description: pages.reduce((desc, $p) => desc + $p('#content').html(), ''),
|
||||
description: pages.reduce((desc, $p) => desc + $p('.list_detail .newsrand').html(), ''),
|
||||
pubDate: date($page('.list_detail .list_copy b').last().text()),
|
||||
link,
|
||||
author: $page('.list_detail .list_copy b').first().text(),
|
||||
|
||||
Reference in New Issue
Block a user