mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixed: Manual Import didn't revert to parent folder when trying to parse series leading to issues with obfuscated releases.
This commit is contained in:
parent
68540cb479
commit
5550565d6a
@ -126,7 +126,13 @@ 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(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())
|
if (series == null && downloadId.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user