Fixed: Rejecting another multi-season pack format

closes #3826
This commit is contained in:
Taloth Saldono 2020-06-20 10:10:56 +02:00
parent ce5f9e8930
commit de245e00e3
2 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ namespace NzbDrone.Core.Test.ParserTests
} }
[TestCase("The Wire S01-05 WS BDRip X264-REWARD-No Rars", "The Wire", 1)] [TestCase("The Wire S01-05 WS BDRip X264-REWARD-No Rars", "The Wire", 1)]
[TestCase("Seinfault.S01-S09.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb", "Seinfault", 1)]
public void should_parse_multi_season_release(string postTitle, string title, int firstSeason) public void should_parse_multi_season_release(string postTitle, string title, int firstSeason)
{ {
var result = Parser.Parser.ParseTitle(postTitle); var result = Parser.Parser.ParseTitle(postTitle);

View File

@ -138,7 +138,7 @@ namespace NzbDrone.Core.Parser
RegexOptions.IgnoreCase | RegexOptions.Compiled), RegexOptions.IgnoreCase | RegexOptions.Compiled),
// Multi-season pack // Multi-season pack
new Regex(@"^(?<title>.+?)[-_. ]+S(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))-(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))", new Regex(@"^(?<title>.+?)[-_. ]+S(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))-S?(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))",
RegexOptions.IgnoreCase | RegexOptions.Compiled), RegexOptions.IgnoreCase | RegexOptions.Compiled),
// Partial season pack // Partial season pack