mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-19 22:04:56 -04:00
Catch search engine related error messages for MyAnonaMouse
This commit is contained in:
@@ -441,6 +441,11 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
return releaseInfos.ToArray();
|
return releaseInfos.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jsonResponse.Data == null)
|
||||||
|
{
|
||||||
|
throw new IndexerException(indexerResponse, "Unexpected response content from indexer request: {0}", jsonResponse.Message ?? "Check the logs for more information.");
|
||||||
|
}
|
||||||
|
|
||||||
var hasUserVip = HasUserVip(httpResponse.GetCookies());
|
var hasUserVip = HasUserVip(httpResponse.GetCookies());
|
||||||
|
|
||||||
foreach (var item in jsonResponse.Data)
|
foreach (var item in jsonResponse.Data)
|
||||||
@@ -655,7 +660,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
public class MyAnonamouseResponse
|
public class MyAnonamouseResponse
|
||||||
{
|
{
|
||||||
public string Error { get; set; }
|
public string Error { get; set; }
|
||||||
public List<MyAnonamouseTorrent> Data { get; set; }
|
public IReadOnlyCollection<MyAnonamouseTorrent> Data { get; set; }
|
||||||
|
public string Message { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MyAnonamouseBuyPersonalFreeleechResponse
|
public class MyAnonamouseBuyPersonalFreeleechResponse
|
||||||
|
|||||||
Reference in New Issue
Block a user