mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 09:49:00 +00:00
post download issues are only logged as warn the first time.
This commit is contained in:
parent
482c591716
commit
10264cba5c
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue