Various naming fixes

Fixed: Parsing anime that had season/episode pattern in the hash
Fixed: Parsing anime that had 6 consectutive digits in the hash
This commit is contained in:
Mark McDowall
2014-12-01 16:48:00 -08:00
parent 1fc8fdf3ab
commit 1e8c2a6a12
3 changed files with 14 additions and 10 deletions
@@ -27,6 +27,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("Series Title - 2013-10-30 - Episode Title (1) [HDTV-720p]", "Series Title", 2013, 10, 30)]
[TestCase("The_Voice_US_04.28.2014_hdtv.x264.Poke.mp4", "The Voice US", 2014, 4, 28)]
[TestCase("At.Midnight.140722.720p.HDTV.x264-YesTV", "At Midnight", 2014, 07, 22)]
[TestCase("At_Midnight_140722_720p_HDTV_x264-YesTV", "At Midnight", 2014, 07, 22)]
public void should_parse_daily_episode(string postTitle, string title, int year, int month, int day)
{
var result = Parser.Parser.ParseTitle(postTitle);