Fixed: Parsing series title during manual import

This commit is contained in:
Mark McDowall 2016-07-03 23:32:25 -07:00
parent c1f59a55c6
commit ab63c3e83d
1 changed files with 1 additions and 9 deletions

View File

@ -12,10 +12,8 @@ using NzbDrone.Core.Download.TrackedDownloads;
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 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
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())
{ {