mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 09:47:39 +00:00
Display Error when RSS Feed doesn't return any items.
This commit is contained in:
parent
1de903e4da
commit
ce79ab2827
1 changed files with 10 additions and 1 deletions
|
@ -100,7 +100,16 @@ namespace NzbDrone.Core.Providers
|
||||||
|
|
||||||
var indexer = new FeedInfoModel(i.IndexerName, i.RssUrl);
|
var indexer = new FeedInfoModel(i.IndexerName, i.RssUrl);
|
||||||
|
|
||||||
foreach (RssItem item in _rss.GetFeed(indexer))
|
var feedItems = _rss.GetFeed(indexer);
|
||||||
|
|
||||||
|
if (feedItems.Count() == 0)
|
||||||
|
{
|
||||||
|
_rssSyncNotification.CurrentStatus = String.Format("Failed to download RSS Feed: {0}", //
|
||||||
|
i.IndexerName);
|
||||||
|
continue; //No need to process anything else
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (RssItem item in feedItems)
|
||||||
{
|
{
|
||||||
NzbInfoModel nzb = Parser.ParseNzbInfo(indexer, item);
|
NzbInfoModel nzb = Parser.ParseNzbInfo(indexer, item);
|
||||||
QueueIfWanted(nzb, i);
|
QueueIfWanted(nzb, i);
|
||||||
|
|
Loading…
Reference in a new issue