Various naming fixes

New: Multi-episode style (Range)
New: Example for mulit-episode anime naming
Fixed: Validate anime episode format when saving
This commit is contained in:
Mark McDowall
2014-11-16 21:31:53 -08:00
parent a83f49ca32
commit cf9f5fe569
10 changed files with 218 additions and 91 deletions

View File

@@ -97,6 +97,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("[ANBU-AonE]_Naruto_26-27_[F224EF26].avi", "Naruto", new[] { 26, 27 })]
[TestCase("[Doutei] Recently, My Sister is Unusual - 01-12 [BD][720p-AAC]", "Recently, My Sister is Unusual", new [] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 })]
[TestCase("Series Title (2010) - 01-02-03 - Episode Title (1) HDTV-720p", "Series Title (2010)", new [] { 1, 2, 3 })]
public void should_parse_multi_episode_absolute_numbers(string postTitle, string title, int[] absoluteEpisodeNumbers)
{
var result = Parser.Parser.ParseTitle(postTitle);