mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Made the feedback from Sonarr better when Sonarr already has the series #85
This commit is contained in:
parent
5843dee2a5
commit
fe0f6873e5
8 changed files with 66 additions and 19 deletions
|
@ -26,13 +26,9 @@
|
|||
#endregion
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
using NLog;
|
||||
|
||||
|
@ -99,17 +95,18 @@ namespace PlexRequests.Api
|
|||
try
|
||||
{
|
||||
var json = JsonConvert.DeserializeObject<T>(response.Content);
|
||||
|
||||
return json;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Fatal(e);
|
||||
Log.Info(response.Content);
|
||||
Log.Error(e);
|
||||
Log.Error(response.Content);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public T DeserializeXml<T>(string input)
|
||||
private T DeserializeXml<T>(string input)
|
||||
where T : class
|
||||
{
|
||||
var ser = new XmlSerializer(typeof(T));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue