fixing feed loading error

This commit is contained in:
John Facey
2022-06-26 18:29:29 -05:00
parent b73e84f735
commit f1c5ed850b
3 changed files with 15 additions and 7 deletions

View File

@@ -168,13 +168,12 @@ exports.loadFeeds = function () {
feeds.forEach(feedBlock => {
(async () => {
try {
const feed = parser.parseURL(feedBlock.link, function (err, feed) {
if (err) {
console.log(err + " " + feedBlock.link);
//return;
}
console.log(feed.title);
feed.items.forEach(item => {
var foundFeed = false;
@@ -196,9 +195,7 @@ exports.loadFeeds = function () {
});
})
} catch (error) {
console.log(error);
}
})().then();
});
return;