Newznab won't blow up if more than one indexer with the same URL is found during initialization.

This commit is contained in:
Mark McDowall 2012-05-04 09:26:25 -07:00
commit a16defc5f0
2 changed files with 24 additions and 1 deletions

View file

@ -71,7 +71,7 @@ namespace NzbDrone.Core.Providers
{
NewznabDefinition indexerLocal = feedProvider;
var currentIndexer = currentIndexers
.SingleOrDefault(c => new Uri(c.Url.ToLower()).Host == new Uri(indexerLocal.Url.ToLower()).Host);
.FirstOrDefault(c => new Uri(c.Url.ToLower()).Host == new Uri(indexerLocal.Url.ToLower()).Host);
if (currentIndexer == null)
{