Reordered parsing REGEX a bit.

This commit is contained in:
Mark McDowall 2012-05-30 08:10:43 -07:00
parent 4ea55444be
commit c50ed82b7e
2 changed files with 5 additions and 4 deletions

View file

@ -70,6 +70,7 @@ namespace NzbDrone.Core.Test
[TestCase("American_Dad!_-_7x6_-_The_Scarlett_Getter_[SDTV]", "American Dad!", 7, 6)]
[TestCase("Falling_Skies_-_1x1_-_Live_and_Learn_[HDTV]", "Falling Skies", 1, 1)]
[TestCase("Top Gear - 07x03 - 2005.11.70", "Top Gear", 7, 3)]
[TestCase("Hatfields and McCoys 2012 Part 1 REPACK 720p HDTV x264 2HD", "Hatfields and McCoys 2012", 1, 1)]
public void ParseTitle_single(string postTitle, string title, int seasonNumber, int episodeNumber)
{
var result = Parser.ParseTitle(postTitle);