1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Manual Import failing to parse series title from certain nested folders.

This commit is contained in:
Taloth Saldono 2016-08-14 21:05:35 +02:00
parent 206ff12b71
commit 4486317888

View File

@ -124,7 +124,14 @@ private ManualImportItem ProcessFile(string file, string downloadId, string fold
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())
{ {