fix: oschina (#5663)
This commit is contained in:
@@ -80,8 +80,8 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
const content = cheerio.load(detail.data);
|
||||
content('.ad-wrap').remove();
|
||||
item.description = content('#articleContent').html();
|
||||
item.author = content('a.__user').find('span').text();
|
||||
item.description = content('.article-detail').html();
|
||||
item.author = content('.article-box__meta .item').first().text();
|
||||
ctx.cache.set(key, item.description);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
const content = cheerio.load(detail.data);
|
||||
content('#articleContent .ad-wrap').remove();
|
||||
item.description = content('#articleContent').html();
|
||||
item.description = content('.article-detail').html();
|
||||
ctx.cache.set(key, item.description);
|
||||
}
|
||||
return Promise.resolve(item);
|
||||
|
||||
@@ -42,7 +42,7 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
const content = cheerio.load(detail.data);
|
||||
content('.ad-wrap').remove();
|
||||
item.description = content('#articleContent').html();
|
||||
item.description = content('.article-detail').html();
|
||||
ctx.cache.set(key, item.description);
|
||||
}
|
||||
return Promise.resolve(item);
|
||||
|
||||
Reference in New Issue
Block a user