mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 22:17:15 -04:00
Avoid import loop for already imported movies
(cherry picked from commit b183743d9f0a0b15e4a9db0a9d3d2d1c238b0d9c) Closes #9325
This commit is contained in:
parent
9ffa1cc2b9
commit
20ac0bb0e1
2 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,7 @@ namespace NzbDrone.Core.Test.MediaFiles.MovieImport.Specifications
|
|||
|
||||
GivenHistory(history);
|
||||
|
||||
Subject.IsSatisfiedBy(_localMovie, _downloadClientItem).Accepted.Should().BeTrue();
|
||||
Subject.IsSatisfiedBy(_localMovie, _downloadClientItem).Accepted.Should().BeFalse();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,6 +67,11 @@ namespace NzbDrone.Core.MediaFiles.MovieImport.Specifications
|
|||
return Decision.Reject("Movie file already imported at {0}", lastImported.Date.ToLocalTime());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Debug("Movie file previously imported at {0}", lastImported.Date);
|
||||
return Decision.Reject("Movie file already imported at {0}", lastImported.Date.ToLocalTime());
|
||||
}
|
||||
|
||||
return Decision.Accept();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue