mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Improve RarBG Error Handling
(cherry picked from commit 7cd38bba841659a595fe4a0e14c478fc4e4047b1)
This commit is contained in:
parent
39ba97f6a5
commit
39abf00d66
1 changed files with 5 additions and 2 deletions
|
@ -30,9 +30,12 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
||||||
|
|
||||||
if (jsonResponse.Resource.error_code.HasValue)
|
if (jsonResponse.Resource.error_code.HasValue)
|
||||||
{
|
{
|
||||||
if (jsonResponse.Resource.error_code == 20 || jsonResponse.Resource.error_code == 8)
|
if (jsonResponse.Resource.error_code == 5 || jsonResponse.Resource.error_code == 8
|
||||||
|
|| jsonResponse.Resource.error_code == 9 || jsonResponse.Resource.error_code == 10
|
||||||
|
|| jsonResponse.Resource.error_code == 13 || jsonResponse.Resource.error_code == 14
|
||||||
|
|| jsonResponse.Resource.error_code == 20)
|
||||||
{
|
{
|
||||||
// No results found
|
// No results, rate limit, tvdbid not found/invalid, or imdbid not found/invalid
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue