1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 17:27:18 +00:00

Fixed: File imports via CDH are no longer checked for file locks.

This commit is contained in:
Taloth Saldono 2014-11-23 21:15:36 +01:00
parent 909f601929
commit 08d92c5511

View file

@ -138,10 +138,13 @@ namespace NzbDrone.Core.MediaFiles
return new List<ImportResult>() { new ImportResult(new ImportDecision(new LocalEpisode { Path = fileInfo.FullName }, "Unknown Series"), String.Format("Unknown Series for file: {0}", fileInfo.Name)) }; return new List<ImportResult>() { new ImportResult(new ImportDecision(new LocalEpisode { Path = fileInfo.FullName }, "Unknown Series"), String.Format("Unknown Series for file: {0}", fileInfo.Name)) };
} }
if (_diskProvider.IsFileLocked(fileInfo.FullName)) if (downloadClientItem == null)
{ {
_logger.Debug("[{0}] is currently locked by another process, skipping", fileInfo.FullName); if (_diskProvider.IsFileLocked(fileInfo.FullName))
return new List<ImportResult>(); {
_logger.Debug("[{0}] is currently locked by another process, skipping", fileInfo.FullName);
return new List<ImportResult>();
}
} }
var decisions = _importDecisionMaker.GetImportDecisions(new List<string>() { fileInfo.FullName }, series, true); var decisions = _importDecisionMaker.GetImportDecisions(new List<string>() { fileInfo.FullName }, series, true);