Fixed: Avoid import loop for already imported episodes part of season packs
Closes #6075
This commit is contained in:
parent
59ea524e0c
commit
b183743d9f
|
@ -123,7 +123,7 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport.Specifications
|
||||||
|
|
||||||
GivenHistory(history);
|
GivenHistory(history);
|
||||||
|
|
||||||
Subject.IsSatisfiedBy(_localEpisode, _downloadClientItem).Accepted.Should().BeTrue();
|
Subject.IsSatisfiedBy(_localEpisode, _downloadClientItem).Accepted.Should().BeFalse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,11 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
|
||||||
return Decision.Reject("Episode file already imported at {0}", lastImported.Date.ToLocalTime());
|
return Decision.Reject("Episode file already imported at {0}", lastImported.Date.ToLocalTime());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_logger.Debug("Episode file previously imported at {0}", lastImported.Date);
|
||||||
|
return Decision.Reject("Episode file already imported at {0}", lastImported.Date.ToLocalTime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Decision.Accept();
|
return Decision.Accept();
|
||||||
|
|
Loading…
Reference in New Issue