mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Error when processing manual import decisions
This commit is contained in:
parent
44e4e46b15
commit
52fbdeaa53
1 changed files with 11 additions and 1 deletions
|
@ -156,7 +156,17 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Manual
|
||||||
var importDecisions = _importDecisionMaker.GetImportDecisions(new List<string> { file },
|
var importDecisions = _importDecisionMaker.GetImportDecisions(new List<string> { file },
|
||||||
artist, null);
|
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)
|
private bool SceneSource(Artist artist, string folder)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue