diff --git a/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs b/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs index e4954ec76..349648571 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs @@ -387,14 +387,14 @@ namespace NzbDrone.Core.Indexers.Definitions throw new IndexerException(indexerResponse, $"Unexpected response header {indexerResponse.HttpResponse.Headers.ContentType} from indexer request, expected {HttpAccept.Json.Value}"); } - var torrentInfos = new List(); + var releaseInfos = new List(); var jsonResponse = JsonConvert.DeserializeObject(indexerResponse.Content); var error = jsonResponse.Error; - if (error is "Nothing returned, out of 0" or "Nothing returned, out of 1") + if (error.IsNotNullOrWhiteSpace() && error.StartsWithIgnoreCase("Nothing returned, out of")) { - return torrentInfos.ToArray(); + return releaseInfos.ToArray(); } var hasUserVip = HasUserVip(); @@ -462,10 +462,10 @@ namespace NzbDrone.Core.Indexers.Definitions release.MinimumRatio = 1; release.MinimumSeedTime = 259200; // 72 hours - torrentInfos.Add(release); + releaseInfos.Add(release); } - return torrentInfos.ToArray(); + return releaseInfos.ToArray(); } private bool HasUserVip()