mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-25 02:30:20 +02:00
Cleanup generating paths for error scenarios.
This commit is contained in:
parent
e87cdbde44
commit
a3e5c90319
@ -114,8 +114,7 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
|
||||
|
||||
//Rename the Directory so it's not processed again.
|
||||
_diskProvider.MoveDirectory(subfolderInfo.FullName,
|
||||
Path.Combine(subfolderInfo.Parent.FullName,
|
||||
"_NzbDrone_InvalidSeries_" + subfolderInfo.Name));
|
||||
GetNewFolderNameWithPostDownloadStatus(subfolderInfo, PostDownloadStatusType.InvalidSeries));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -132,9 +131,8 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
|
||||
if (importedFiles.Count == 0)
|
||||
{
|
||||
Logger.Warn("Unable to Import new download [{0}], unable to parse episode file(s).", subfolderInfo.FullName);
|
||||
_diskProvider.MoveDirectory(subfolderInfo.FullName,
|
||||
Path.Combine(subfolderInfo.Parent.FullName,
|
||||
"_NzbDrone_ParseError_" + subfolderInfo.Name));
|
||||
_diskProvider.MoveDirectory(subfolderInfo.FullName,
|
||||
GetNewFolderNameWithPostDownloadStatus(subfolderInfo, PostDownloadStatusType.ParseError));
|
||||
}
|
||||
|
||||
//Unknown Error Importing (Possibly a lesser quality than episode currently on disk)
|
||||
@ -142,9 +140,7 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
|
||||
{
|
||||
Logger.Warn("Unable to Import new download [{0}].", subfolderInfo.FullName);
|
||||
|
||||
_diskProvider.MoveDirectory(subfolderInfo.FullName,
|
||||
Path.Combine(subfolderInfo.Parent.FullName,
|
||||
"_NzbDrone_" + subfolderInfo.Name));
|
||||
_diskProvider.MoveDirectory(subfolderInfo.FullName, GetNewFolderNameWithPostDownloadStatus(subfolderInfo, PostDownloadStatusType.Unknown));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user