fix(core): update

This commit is contained in:
2020-10-26 12:18:33 +00:00
parent 850f20fc38
commit b6abfd11d2
9 changed files with 132 additions and 64 deletions

View File

@@ -5,7 +5,7 @@ export class SitemapNews {
constructor(optionsArg: {}) {}
public async readFromRssFeed(urlArg: string) {
public async readAndAddFromRssFeed(urlArg: string) {
const smartfeedInstance = new plugins.smartfeed.Smartfeed();
const parsedFeed = await smartfeedInstance.parseFeedFromUrl(urlArg);
this.items = this.items.concat(parsedFeed.items);