Cleanup generating paths for error scenarios.

pull/2/head
Mark McDowall 13 years ago
parent e87cdbde44
commit a3e5c90319

@ -114,8 +114,7 @@ namespace NzbDrone.Core.Providers
//Rename the Directory so it's not processed again. //Rename the Directory so it's not processed again.
_diskProvider.MoveDirectory(subfolderInfo.FullName, _diskProvider.MoveDirectory(subfolderInfo.FullName,
Path.Combine(subfolderInfo.Parent.FullName, GetNewFolderNameWithPostDownloadStatus(subfolderInfo, PostDownloadStatusType.InvalidSeries));
"_NzbDrone_InvalidSeries_" + subfolderInfo.Name));
return; return;
} }
@ -133,8 +132,7 @@ namespace NzbDrone.Core.Providers
{ {
Logger.Warn("Unable to Import new download [{0}], unable to parse episode file(s).", subfolderInfo.FullName); Logger.Warn("Unable to Import new download [{0}], unable to parse episode file(s).", subfolderInfo.FullName);
_diskProvider.MoveDirectory(subfolderInfo.FullName, _diskProvider.MoveDirectory(subfolderInfo.FullName,
Path.Combine(subfolderInfo.Parent.FullName, GetNewFolderNameWithPostDownloadStatus(subfolderInfo, PostDownloadStatusType.ParseError));
"_NzbDrone_ParseError_" + subfolderInfo.Name));
} }
//Unknown Error Importing (Possibly a lesser quality than episode currently on disk) //Unknown Error Importing (Possibly a lesser quality than episode currently on disk)
@ -142,9 +140,7 @@ namespace NzbDrone.Core.Providers
{ {
Logger.Warn("Unable to Import new download [{0}].", subfolderInfo.FullName); Logger.Warn("Unable to Import new download [{0}].", subfolderInfo.FullName);
_diskProvider.MoveDirectory(subfolderInfo.FullName, _diskProvider.MoveDirectory(subfolderInfo.FullName, GetNewFolderNameWithPostDownloadStatus(subfolderInfo, PostDownloadStatusType.Unknown));
Path.Combine(subfolderInfo.Parent.FullName,
"_NzbDrone_" + subfolderInfo.Name));
} }
} }
} }

Loading…
Cancel
Save