mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Working on getting the Sonarr component to work correctly.
This commit is contained in:
parent
c9d2b8fc13
commit
55addbee0a
1 changed files with 17 additions and 14 deletions
|
@ -64,23 +64,26 @@ namespace PlexRequests.Api
|
|||
};
|
||||
|
||||
var options = new SonarrAddSeries();
|
||||
if (episodes)
|
||||
if (seasons.Length == 0)
|
||||
{
|
||||
options.addOptions = new AddOptions
|
||||
if (episodes)
|
||||
{
|
||||
ignoreEpisodesWithFiles = true,
|
||||
ignoreEpisodesWithoutFiles = true,
|
||||
searchForMissingEpisodes = false
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
options.addOptions = new AddOptions
|
||||
options.addOptions = new AddOptions
|
||||
{
|
||||
ignoreEpisodesWithFiles = true,
|
||||
ignoreEpisodesWithoutFiles = true,
|
||||
searchForMissingEpisodes = false
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
ignoreEpisodesWithFiles = false,
|
||||
searchForMissingEpisodes = true,
|
||||
ignoreEpisodesWithoutFiles = false
|
||||
};
|
||||
options.addOptions = new AddOptions
|
||||
{
|
||||
ignoreEpisodesWithFiles = false,
|
||||
searchForMissingEpisodes = true,
|
||||
ignoreEpisodesWithoutFiles = false
|
||||
};
|
||||
}
|
||||
}
|
||||
options.seasonFolder = seasonFolders;
|
||||
options.title = title;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue