A better fix for #587

pull/591/head^2
tidusjar 8 years ago
parent 512d2131bd
commit ac51b39636

@ -122,7 +122,7 @@ namespace PlexRequests.Api
});
result = policy.Execute(() => Api.ExecuteJson<SonarrAddSeries>(request, baseUrl));
}
}
catch (JsonSerializationException jse)
{
Log.Error(jse);

@ -151,6 +151,15 @@ namespace PlexRequests.UI.Helpers
await Task.Delay(TimeSpan.FromSeconds(1));
series = await GetSonarrSeries(sonarrSettings, model.ProviderId);
// Due to the bug above, we need to make sure all seasons are not monitored
foreach (var s in series.seasons)
{
s.monitored = false;
}
SonarrApi.UpdateSeries(series, sonarrSettings.ApiKey, sonarrSettings.FullUri);
}
if (first ?? false)

Loading…
Cancel
Save