1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Added additional logging to PostDownloadProvider.

This commit is contained in:
Mark McDowall 2012-02-10 22:33:27 -08:00
parent 3f02a1f347
commit 2a6f02be17

View File

@ -61,6 +61,7 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
if (series == null)
{
Logger.Trace("Unknown Series on Import: {0}", subfolderInfo.Name);
TagFolder(subfolderInfo, PostDownloadStatusType.UnknownSeries);
return;
}
@ -71,17 +72,20 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
//Delete the folder only if folder is small enough
if (_diskProvider.GetDirectorySize(subfolderInfo.FullName) < Constants.IgnoreFileSize)
{
Logger.Trace("Episode(s) imported, deleting folder: {0}", subfolderInfo.Name);
_diskProvider.DeleteFolder(subfolderInfo.FullName, true);
}
else
{
if (importedFiles.Count == 0)
{
Logger.Trace("No Imported files: {0}", subfolderInfo.Name);
TagFolder(subfolderInfo, PostDownloadStatusType.ParseError);
}
else
{
//Unknown Error Importing (Possibly a lesser quality than episode currently on disk)
Logger.Trace("Unable to import series (Unknown): {0}", subfolderInfo.Name);
TagFolder(subfolderInfo, PostDownloadStatusType.Unknown);
}
}