fix: rsshub routes update

This commit is contained in:
TonyRL
2023-08-16 16:05:50 +00:00
parent 715c1f119e
commit dfe784fffe

View File

@@ -55,7 +55,7 @@ module.exports = async (ctx) => {
return {
title: `${h2Title.text().trim()} - ${h3Title.text().trim()}`,
description: item.html(),
link: `https://docs.rsshub.app/${lang}routes/${type}#${encodeURIComponent(h2Title.find('.hash-link').attr('href') && h3Title.find('.hash-link').attr('href').substring(1))}`,
link: `https://docs.rsshub.app/${lang}routes/${type}#${encodeURIComponent(h2Title.find('.hash-link').attr('href') && h3Title.find('.hash-link').attr('href')?.substring(1))}`,
guid: item.attr('id'),
};
}),