From 7eeff32185deb7f4db9187206dad97a53a16c571 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 21 Aug 2019 21:43:36 +0200 Subject: [PATCH] Another Daily format with no series title. --- src/NzbDrone.Core.Test/ParserTests/DailyEpisodeParserFixture.cs | 1 + src/NzbDrone.Core/Parser/Parser.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/ParserTests/DailyEpisodeParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/DailyEpisodeParserFixture.cs index f0b530261..8ef1f9ba3 100644 --- a/src/NzbDrone.Core.Test/ParserTests/DailyEpisodeParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/DailyEpisodeParserFixture.cs @@ -30,6 +30,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("Jimmy_Fallon_2018_06_22_Seth_Meyers_720p_HEVC_x265-MeGusta", "Jimmy Fallon", 2018, 6, 22)] [TestCase("20161024- Exotic Payback.21x41_720.mkv", "", 2016, 10, 24)] [TestCase("2018-11-14.1080.all.mp4", "", 2018, 11, 14)] + [TestCase("2019_08_20_1080_all.mp4", "", 2019, 8, 20)] //[TestCase("", "", 0, 0, 0)] public void should_parse_daily_episode(string postTitle, string title, int year, int month, int day) { diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index 7b272852e..9cca1cd85 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -37,7 +37,7 @@ namespace NzbDrone.Core.Parser // RegexOptions.IgnoreCase | RegexOptions.Compiled), //Daily episodes without title (2018-10-12, 20181012) (Strict pattern to avoid false matches) - new Regex(@"^(?19[6-9]\d|20\d\d)(?[-]?)(?0\d|1[0-2])\k(?[0-2]\d|3[01])(?!\d)", + new Regex(@"^(?19[6-9]\d|20\d\d)(?[-_]?)(?0\d|1[0-2])\k(?[0-2]\d|3[01])(?!\d)", RegexOptions.IgnoreCase | RegexOptions.Compiled), //Multi-Part episodes without a title (S01E05.S01E06)