more tests fixed.

This commit is contained in:
Keivan Beigi 2013-04-17 16:32:53 -07:00
commit 7c3c02ba60
8 changed files with 113 additions and 99 deletions

View file

@ -53,8 +53,16 @@ namespace NzbDrone.Core.Parser
public Series GetSeries(string title)
{
var searchTitle = title;
var parseResult = Parser.ParseTitle(title);
return _seriesService.FindByTitle(parseResult.SeriesTitle);
if (parseResult != null)
{
searchTitle = parseResult.SeriesTitle;
}
return _seriesService.FindByTitle(searchTitle);
}
public RemoteEpisode Map(ReportInfo indexerParseResult)