some updates, not yet switched to stdout

This commit is contained in:
Jendrik Weise 2023-08-26 02:50:29 +02:00
parent 6d0f73e641
commit d61f119f8b
3 changed files with 9 additions and 2 deletions

View File

@ -142,7 +142,8 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
_extraService.MoveFilesAfterRename(localEpisode.Series, episodeFile);
}
}
else
if (!localEpisode.ScriptImported || localEpisode.ShouldImportExtras)
{
_extraService.ImportEpisode(localEpisode, episodeFile, copyOnly);
}

View File

@ -187,7 +187,12 @@ namespace NzbDrone.Core.MediaFiles
episodeFile.RelativePath = series.Path.GetRelativePath(destinationFilePath);
episodeFile.Path = destinationFilePath;
switch (processOutput.ExitCode)
if ((processOutput.ExitCode & 0x4) == 0x4)
{
localEpisode.ShouldImportExtras = true;
}
switch (processOutput.ExitCode & 0x3)
{
case 0: // Copy complete
localEpisode.ScriptImported = true;

View File

@ -42,6 +42,7 @@ namespace NzbDrone.Core.Parser.Model
public GrabbedReleaseInfo Release { get; set; }
public bool ScriptImported { get; set; }
public bool ImportRenamed { get; set; }
public bool ShouldImportExtras { get; set; }
public List<string> PossibleExtraFiles { get; set; }
public int SeasonNumber