mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Newznab won't blow up if more than one indexer with the same URL is found during initialization.
This commit is contained in:
parent
b930eb0993
commit
a16defc5f0
2 changed files with 24 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue