mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fix for #978
This commit is contained in:
parent
948097cd6c
commit
2d1ad10b70
4 changed files with 19 additions and 2 deletions
|
@ -107,6 +107,11 @@ namespace Ombi.Api
|
|||
var error = JsonConvert.DeserializeObject < RadarrError>(response.Content);
|
||||
return new RadarrAddMovie {Error = error};
|
||||
}
|
||||
if (response.Content.Contains("\"errorMessage\":"))
|
||||
{
|
||||
var error = JsonConvert.DeserializeObject<List<SonarrError>>(response.Content).FirstOrDefault();
|
||||
return new RadarrAddMovie {Error = new RadarrError {message = error?.errorMessage}};
|
||||
}
|
||||
return JsonConvert.DeserializeObject < RadarrAddMovie>(response.Content);
|
||||
}
|
||||
catch (JsonSerializationException jse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue