mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-29 18:06:31 +08:00
fix: banyuetan null error (#2708)
This commit is contained in:
@@ -41,9 +41,7 @@ module.exports = async (ctx) => {
|
||||
const response = await got.get(itemUrl);
|
||||
|
||||
const $ = cheerio.load(response.data);
|
||||
const description = $('div.detail_content')
|
||||
.html()
|
||||
.trim();
|
||||
const description = $('div.detail_content').html() || '文章已被删除';
|
||||
|
||||
const single = {
|
||||
title: title,
|
||||
|
||||
Reference in New Issue
Block a user