mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Fixed: Manual Import failing to parse series title from certain nested folders.
This commit is contained in:
parent
206ff12b71
commit
4486317888
1 changed files with 10 additions and 3 deletions
|
@ -124,7 +124,14 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
|
||||||
folder = new FileInfo(file).Directory.FullName;
|
folder = new FileInfo(file).Directory.FullName;
|
||||||
}
|
}
|
||||||
|
|
||||||
var series = _parsingService.GetSeries(folder.GetRelativePath(file));
|
var relativeFile = folder.GetRelativePath(file);
|
||||||
|
|
||||||
|
var series = _parsingService.GetSeries(relativeFile.Split('\\', '/')[0]);
|
||||||
|
|
||||||
|
if (series == null)
|
||||||
|
{
|
||||||
|
series = _parsingService.GetSeries(relativeFile);
|
||||||
|
}
|
||||||
|
|
||||||
if (series == null && downloadId.IsNotNullOrWhiteSpace())
|
if (series == null && downloadId.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue