mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 08:10:32 +08:00
fix(route): jiemian新闻移除标题中的target= (#7664)
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
|
|||||||
let out = await Promise.all(
|
let out = await Promise.all(
|
||||||
list.map(async (item) => {
|
list.map(async (item) => {
|
||||||
const $ = cheerio.load(item);
|
const $ = cheerio.load(item);
|
||||||
const title = $('.item-main a').text();
|
const title = $('.item-main a').text().replace('target="_blank">', '');
|
||||||
const itemUrl = $('.item-main a').attr('href');
|
const itemUrl = $('.item-main a').attr('href');
|
||||||
const cache = await ctx.cache.get(itemUrl);
|
const cache = await ctx.cache.get(itemUrl);
|
||||||
if (cache) {
|
if (cache) {
|
||||||
|
|||||||
Reference in New Issue
Block a user