mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 12:15:32 +08:00
fix(route/ntrblog): use utils/got to get feed content (#20511)
This commit is contained in:
@@ -35,7 +35,8 @@ export const route: Route = {
|
||||
};
|
||||
|
||||
async function handler(): Promise<Data> {
|
||||
const feed = await parser.parseURL('https://ntrblog.com/atom.xml');
|
||||
const rsp = await got('https://ntrblog.com/atom.xml');
|
||||
const feed = await parser.parseString(rsp.data);
|
||||
|
||||
const items = await Promise.all(
|
||||
feed.items.map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user