Fix for episodes with "Part" in the Episode Title being picked up as mini-series releases.

This commit is contained in:
Mark McDowall 2012-02-15 12:17:10 -08:00
commit 59516c240f
2 changed files with 5 additions and 4 deletions

View file

@ -62,6 +62,7 @@ namespace NzbDrone.Core.Test
[TestCase("S6E02-Unwrapped-(Playing With Food) - [DarkData]", "", 6, 2)]
[TestCase("S06E03-Unwrapped-(Number Ones Unwrapped) - [DarkData]", "", 6, 3)]
[TestCase("The Mentalist S02E21 18 5 4 720p WEB DL DD5 1 h 264 EbP", "The Mentalist", 2, 21)]
[TestCase("01x04 - Halloween, Part 1 - 720p WEB-DL", "", 1, 4)]
public void ParseTitle_single(string postTitle, string title, int seasonNumber, int episodeNumber)
{
var result = Parser.ParseTitle(postTitle);