mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
fix: error in nowcoder/discuss (#3884)
This commit is contained in:
@@ -25,10 +25,8 @@ module.exports = async (ctx) => {
|
||||
.trim()
|
||||
.replace('\n', ' '),
|
||||
link: $(this)
|
||||
.find('div.discuss-main.clearfix a')
|
||||
.attr('href')
|
||||
.match(/^\/discuss\/[0-9]*/gm)
|
||||
.toString(),
|
||||
.find('div.discuss-main.clearfix a[rel]')
|
||||
.attr('href'),
|
||||
};
|
||||
return info;
|
||||
})
|
||||
@@ -51,9 +49,7 @@ module.exports = async (ctx) => {
|
||||
.text()
|
||||
.split(' ')[1];
|
||||
|
||||
const description = $('.nc-post-content')
|
||||
.html()
|
||||
.trim();
|
||||
const description = $('.nc-post-content').html();
|
||||
|
||||
const single = {
|
||||
title: title,
|
||||
|
||||
Reference in New Issue
Block a user