mirror of
https://github.com/DIYgod/RSSHub-Radar.git
synced 2026-08-30 16:41:08 +08:00
fix: cross-origin issue during link checking
This commit is contained in:
+4
-2
@@ -159,11 +159,13 @@ export async function getPageRSS(data: {
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log("uncertain", uncertain)
|
||||
await Promise.all(uncertain.map((feed) => {
|
||||
return new Promise<void>(async (resolve) => {
|
||||
try {
|
||||
const result = await rssParser.parseURL(feed.url)
|
||||
const content = await (await fetch(feed.url, {
|
||||
mode: "no-cors",
|
||||
})).text()
|
||||
const result = await rssParser.parseString(content)
|
||||
feed.title = result.title;
|
||||
pageRSS.push(feed);
|
||||
unique.save(feed.url)
|
||||
|
||||
Reference in New Issue
Block a user