mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Added logging around SickRage
This commit is contained in:
parent
10be8f0440
commit
dd07e7546b
7 changed files with 113 additions and 36 deletions
|
@ -77,11 +77,16 @@ namespace PlexRequests.UI.Helpers
|
|||
|
||||
public SickRageTvAdd SendToSickRage(SickRageSettings sickRageSettings, RequestedModel model, string qualityId)
|
||||
{
|
||||
Log.Info("Sending to SickRage {0}", model.Title);
|
||||
if (!sickRageSettings.Qualities.Any(x => x.Key == qualityId))
|
||||
{
|
||||
qualityId = sickRageSettings.QualityProfile;
|
||||
}
|
||||
|
||||
Log.Trace("Calling `AddSeries` with the following settings:");
|
||||
Log.Trace(sickRageSettings.DumpJson());
|
||||
Log.Trace("And the following `model`:");
|
||||
Log.Trace(model.DumpJson());
|
||||
var apiResult = SickrageApi.AddSeries(model.ProviderId, model.SeasonCount, model.SeasonList, qualityId,
|
||||
sickRageSettings.ApiKey, sickRageSettings.FullUri);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue