mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: gbcc/trust GUIDs are not unique (#3747)
This commit is contained in:
@@ -8,15 +8,17 @@ module.exports = async (ctx) => {
|
||||
const $ = cheerio.load(response);
|
||||
|
||||
const items = $('.entry-anchorLinkId')
|
||||
.next('.entry-text')
|
||||
.map((i, e) => ({
|
||||
title: $(e)
|
||||
.find('h1')
|
||||
.html(),
|
||||
link,
|
||||
description: $(e).html(),
|
||||
pubDate: new Date().toUTCString(),
|
||||
}))
|
||||
.map((i, e) => {
|
||||
const text = $(e).next('.entry-text');
|
||||
return {
|
||||
title: $(text)
|
||||
.find('h1')
|
||||
.html(),
|
||||
link: `${link}#${$(e).children('div')[0].attribs.id}`,
|
||||
description: $(text).html(),
|
||||
pubDate: new Date().toUTCString(),
|
||||
};
|
||||
})
|
||||
.get();
|
||||
|
||||
ctx.state.data = {
|
||||
|
||||
Reference in New Issue
Block a user