Log.Debug("Seasons = {0}, out of {1} seasons",seasons.DumpJson(),seasonCount);
Log.Debug("Seasons = {0}, out of {1} seasons",seasons.DumpJson(),seasonCount);
@ -86,6 +86,16 @@ namespace PlexRequests.Api
monitored=monitor
monitored=monitor
};
};
if(!searchForMissingEpisodes)
{
options.addOptions=newAddOptions
{
searchForMissingEpisodes=false,
ignoreEpisodesWithFiles=true,
ignoreEpisodesWithoutFiles=true
};
}
for(vari=1;i<=seasonCount;i++)
for(vari=1;i<=seasonCount;i++)
{
{
varseason=newSeason
varseason=newSeason
@ -107,9 +117,8 @@ namespace PlexRequests.Api
try
try
{
{
varpolicy=RetryHandler.RetryAndWaitPolicy((exception,timespan)=>Log.Error(exception,"Exception when calling AddSeries for Sonarr, Retrying {0}",timespan),newTimeSpan[]{
varpolicy=RetryHandler.RetryAndWaitPolicy((exception,timespan)=>Log.Error(exception,"Exception when calling AddSeries for Sonarr, Retrying {0}",timespan),newTimeSpan[]{