Skip to content

Commit

Permalink
Fixed: Parsing series title during manual import
Browse files Browse the repository at this point in the history
  • Loading branch information
markus101 committed Jul 4, 2016
1 parent c1f59a5 commit ab63c3e
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
using NzbDrone.Core.MediaFiles.MediaInfo;
using NzbDrone.Core.Messaging.Commands;
using NzbDrone.Core.Messaging.Events;
using NzbDrone.Core.MetadataSource.SkyHook.Resource;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Qualities;
using NzbDrone.Core.Tv;

namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
Expand Down Expand Up @@ -126,13 +124,7 @@ private ManualImportItem ProcessFile(string file, string downloadId, string fold
folder = new FileInfo(file).Directory.FullName;
}

Series series = null;

var parsedEpisodeInfo = Parser.Parser.ParsePath(folder.GetRelativePath(file));
if (parsedEpisodeInfo != null)
{
series = _parsingService.GetSeries(parsedEpisodeInfo.SeriesTitle);
}
var series = _parsingService.GetSeries(folder.GetRelativePath(file));

if (series == null && downloadId.IsNotNullOrWhiteSpace())
{
Expand Down

0 comments on commit ab63c3e

Please sign in to comment.