mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Some more changes
This commit is contained in:
parent
f6e1176295
commit
cfd01fa86e
3 changed files with 4 additions and 3 deletions
|
@ -36,7 +36,7 @@ namespace PlexRequests.Api.Interfaces
|
|||
List<SonarrProfile> GetProfiles(string apiKey, Uri baseUrl);
|
||||
|
||||
SonarrAddSeries AddSeries(int tvdbId, string title, int qualityId, bool seasonFolders, string rootPath,
|
||||
int seasonCount, int[] seasons, string apiKey, Uri baseUrl, bool notMonitored = true);
|
||||
int seasonCount, int[] seasons, string apiKey, Uri baseUrl, bool monitored = true);
|
||||
|
||||
SystemStatus SystemStatus(string apiKey, Uri baseUrl);
|
||||
|
||||
|
|
|
@ -91,7 +91,8 @@ namespace PlexRequests.Api
|
|||
var season = new Season
|
||||
{
|
||||
seasonNumber = i,
|
||||
monitored = seasons.Length == 0 || seasons.Any(x => x == i)
|
||||
// ReSharper disable once SimplifyConditionalTernaryExpression
|
||||
monitored = monitor ? seasons.Length == 0 || seasons.Any(x => x == i) : false
|
||||
};
|
||||
options.seasons.Add(season);
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ 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))
|
||||
if (sickRageSettings.Qualities.All(x => x.Key != qualityId))
|
||||
{
|
||||
qualityId = sickRageSettings.QualityProfile;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue