mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02: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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user