Fixed: Manual Import didn't revert to parent folder when trying to parse series leading to issues with obfuscated releases.

pull/6/head
Taloth Saldono 9 years ago
parent 68540cb479
commit 5550565d6a

@ -126,7 +126,13 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
folder = new FileInfo(file).Directory.FullName;
}
var series = _parsingService.GetSeries(Path.GetFileNameWithoutExtension(file));
Series series = null;
var parsedEpisodeInfo = Parser.Parser.ParsePath(folder.GetRelativePath(file));
if (parsedEpisodeInfo != null)
{
series = _parsingService.GetSeries(parsedEpisodeInfo.SeriesTitle);
}
if (series == null && downloadId.IsNotNullOrWhiteSpace())
{

Loading…
Cancel
Save