1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fixed: Error when processing manual import decisions

Fixes #1590
This commit is contained in:
Mark McDowall 2017-05-24 22:02:11 -07:00
parent 285288db1a
commit baf83b4c71
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0

View File

@ -163,7 +163,17 @@ private ManualImportItem ProcessFile(string file, string downloadId, string fold
var importDecisions = _importDecisionMaker.GetImportDecisions(new List<string> {file}, var importDecisions = _importDecisionMaker.GetImportDecisions(new List<string> {file},
series, downloadClientItem, null, SceneSource(series, folder)); series, downloadClientItem, null, SceneSource(series, folder));
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(Series series, string folder) private bool SceneSource(Series series, string folder)