some updates, not yet switched to stdout
This commit is contained in:
parent
6d0f73e641
commit
d61f119f8b
|
@ -142,7 +142,8 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
|
||||||
_extraService.MoveFilesAfterRename(localEpisode.Series, episodeFile);
|
_extraService.MoveFilesAfterRename(localEpisode.Series, episodeFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (!localEpisode.ScriptImported || localEpisode.ShouldImportExtras)
|
||||||
{
|
{
|
||||||
_extraService.ImportEpisode(localEpisode, episodeFile, copyOnly);
|
_extraService.ImportEpisode(localEpisode, episodeFile, copyOnly);
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,7 +187,12 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
episodeFile.RelativePath = series.Path.GetRelativePath(destinationFilePath);
|
episodeFile.RelativePath = series.Path.GetRelativePath(destinationFilePath);
|
||||||
episodeFile.Path = destinationFilePath;
|
episodeFile.Path = destinationFilePath;
|
||||||
|
|
||||||
switch (processOutput.ExitCode)
|
if ((processOutput.ExitCode & 0x4) == 0x4)
|
||||||
|
{
|
||||||
|
localEpisode.ShouldImportExtras = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (processOutput.ExitCode & 0x3)
|
||||||
{
|
{
|
||||||
case 0: // Copy complete
|
case 0: // Copy complete
|
||||||
localEpisode.ScriptImported = true;
|
localEpisode.ScriptImported = true;
|
||||||
|
|
|
@ -42,6 +42,7 @@ namespace NzbDrone.Core.Parser.Model
|
||||||
public GrabbedReleaseInfo Release { get; set; }
|
public GrabbedReleaseInfo Release { get; set; }
|
||||||
public bool ScriptImported { get; set; }
|
public bool ScriptImported { get; set; }
|
||||||
public bool ImportRenamed { get; set; }
|
public bool ImportRenamed { get; set; }
|
||||||
|
public bool ShouldImportExtras { get; set; }
|
||||||
public List<string> PossibleExtraFiles { get; set; }
|
public List<string> PossibleExtraFiles { get; set; }
|
||||||
|
|
||||||
public int SeasonNumber
|
public int SeasonNumber
|
||||||
|
|
Loading…
Reference in New Issue