Fix: Parsing issue for episodes with year and 105 style naming.

This commit is contained in:
Mark McDowall 2012-02-22 08:23:25 -08:00
parent f015739285
commit 694b712c14
2 changed files with 6 additions and 4 deletions

View file

@ -64,6 +64,8 @@ namespace NzbDrone.Core.Test
[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)]
[TestCase("extras.s03.e05.ws.dvdrip.xvid-m00tv", "Extras", 3, 5)]
[TestCase("castle.2009.416.hdtv-lol", "Castle 2009", 4, 16)]
[TestCase("hawaii.five-0.2010.217.hdtv-lol", "Hawaii Five-0 (2010)", 2, 17)]
public void ParseTitle_single(string postTitle, string title, int seasonNumber, int episodeNumber)
{
var result = Parser.ParseTitle(postTitle);