mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Skip import when when folder is in use
Fixed: Skip post-processing when folder is in use or series path does not exist on disk
This commit is contained in:
parent
5014745f88
commit
5cc2810f77
4 changed files with 84 additions and 8 deletions
|
@ -71,6 +71,12 @@ namespace NzbDrone.Core.Providers
|
|||
return;
|
||||
}
|
||||
|
||||
if (_diskProvider.IsFolderLocked(subfolderInfo.FullName))
|
||||
{
|
||||
Logger.Trace("[{0}] is currently locked by another process, skipping", subfolderInfo.Name);
|
||||
return;
|
||||
}
|
||||
|
||||
string seriesName = Parser.ParseSeriesName(RemoveStatusFromFolderName(subfolderInfo.Name));
|
||||
var series = _seriesProvider.FindSeries(seriesName);
|
||||
|
||||
|
@ -135,6 +141,12 @@ namespace NzbDrone.Core.Providers
|
|||
return;
|
||||
}
|
||||
|
||||
if (_diskProvider.IsFileLocked(new FileInfo(videoFile)))
|
||||
{
|
||||
Logger.Trace("[{0}] is currently locked by another process, skipping", videoFile);
|
||||
return;
|
||||
}
|
||||
|
||||
var seriesName = Parser.ParseSeriesName(Path.GetFileNameWithoutExtension(videoFile));
|
||||
var series = _seriesProvider.FindSeries(seriesName);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue