Skip to content

Commit

Permalink
Fixed loading message not disappearing when RSS feed is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimiesl committed Nov 21, 2024
1 parent f55ceba commit 99a4301
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class RssXmlParserService {

public static buildRSS2(xmlObj: any): void {
const channel:any = Array.isArray(xmlObj.rss.channel) ? xmlObj.rss.channel[0] : xmlObj.rss.channel;
const items = Array.isArray(channel.item) ? channel.item : [channel.item];
const items = Array.isArray(channel.item) || !channel.item ? channel.item : [channel.item];
const feed = this.buildRSS(channel, items);
if (xmlObj.rss.$ && xmlObj.rss.$['xmlns:itunes']) {
this.decorateItunes(feed, channel);
Expand Down

0 comments on commit 99a4301

Please sign in to comment.