1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 01:38:24 +00:00

post download issues are only logged as warn the first time.

This commit is contained in:
kay.one 2011-11-25 22:38:22 -08:00
parent 482c591716
commit 10264cba5c

View file

@ -59,8 +59,6 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
if (series == null)
{
Logger.Warn("Unable to Import new download [{0}], Can't find matching series in database.",
subfolderInfo.Name);
TagFolder(subfolderInfo, PostDownloadStatusType.UnknownSeries);
return;
}
@ -77,14 +75,11 @@ public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
{
if (importedFiles.Count == 0)
{
Logger.Warn("Unable to Import new download [{0}], no importable files were found.",
subfolderInfo.Name);
TagFolder(subfolderInfo, PostDownloadStatusType.ParseError);
}
else
{
//Unknown Error Importing (Possibly a lesser quality than episode currently on disk)
Logger.Warn("Unable to Import new download [{0}].", subfolderInfo.Name);
TagFolder(subfolderInfo, PostDownloadStatusType.Unknown);
}
}
@ -96,8 +91,13 @@ private void TagFolder(DirectoryInfo directory, PostDownloadStatusType status)
if (!String.Equals(target.NormalizePath(), directory.FullName.NormalizePath(), StringComparison.InvariantCultureIgnoreCase))
{
Logger.Warn("Unable to download [{0}]. Status: {1}",directory.Name, status);
_diskProvider.MoveDirectory(directory.FullName, target);
}
else
{
Logger.Debug("Unable to download [{0}], {1}", directory.Name, status);
}
}
public static string GetTaggedFolderName(DirectoryInfo directoryInfo, PostDownloadStatusType status)