1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-28 10:37:41 +00:00

Fixed: Error when processing manual import decisions

This commit is contained in:
Qstick 2017-10-08 01:00:54 -04:00
parent 44e4e46b15
commit 52fbdeaa53

View file

@ -156,7 +156,17 @@ private ManualImportItem ProcessFile(string file, string downloadId, string fold
var importDecisions = _importDecisionMaker.GetImportDecisions(new List<string> { file },
artist, null);
return importDecisions.Any() ? MapItem(importDecisions.First(), folder, downloadId) : null;
return importDecisions.Any() ? MapItem(importDecisions.First(), folder, downloadId) : new ManualImportItem
{
DownloadId = downloadId,
Path = file,
RelativePath = folder.GetRelativePath(file),
Name = Path.GetFileNameWithoutExtension(file),
Rejections = new List<Rejection>
{
new Rejection("Unable to process file")
}
};
}
private bool SceneSource(Artist artist, string folder)