mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Parsing series title during manual import
This commit is contained in:
parent
c1f59a55c6
commit
ab63c3e83d
@ -12,10 +12,8 @@
|
|||||||
using NzbDrone.Core.MediaFiles.MediaInfo;
|
using NzbDrone.Core.MediaFiles.MediaInfo;
|
||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
using NzbDrone.Core.Messaging.Events;
|
using NzbDrone.Core.Messaging.Events;
|
||||||
using NzbDrone.Core.MetadataSource.SkyHook.Resource;
|
|
||||||
using NzbDrone.Core.Parser;
|
using NzbDrone.Core.Parser;
|
||||||
using NzbDrone.Core.Parser.Model;
|
using NzbDrone.Core.Parser.Model;
|
||||||
using NzbDrone.Core.Qualities;
|
|
||||||
using NzbDrone.Core.Tv;
|
using NzbDrone.Core.Tv;
|
||||||
|
|
||||||
namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
|
namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
|
||||||
@ -126,13 +124,7 @@ private ManualImportItem ProcessFile(string file, string downloadId, string fold
|
|||||||
folder = new FileInfo(file).Directory.FullName;
|
folder = new FileInfo(file).Directory.FullName;
|
||||||
}
|
}
|
||||||
|
|
||||||
Series series = null;
|
var series = _parsingService.GetSeries(folder.GetRelativePath(file));
|
||||||
|
|
||||||
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