From f8aba21acda38a19a0e65df32248ae8a8c76c23c Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Mon, 14 Jun 2021 17:21:01 -0500 Subject: [PATCH] Removed "Anthology" from being a special parsing keyword as series are being found where "Anthology" is in the series name. (#304) --- API.Tests/Parser/MangaParserTests.cs | 2 +- API/Parser/Parser.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/API.Tests/Parser/MangaParserTests.cs b/API.Tests/Parser/MangaParserTests.cs index e09166585..bba6f60e8 100644 --- a/API.Tests/Parser/MangaParserTests.cs +++ b/API.Tests/Parser/MangaParserTests.cs @@ -241,7 +241,7 @@ namespace API.Tests.Parser [InlineData("Ani-Hina Art Collection.cbz", true)] [InlineData("Gifting The Wonderful World With Blessings! - 3 Side Stories [yuNS][Unknown]", true)] [InlineData("A Town Where You Live - Bonus Chapter.zip", true)] - [InlineData("Yuki Merry - 4-Komga Anthology", true)] + [InlineData("Yuki Merry - 4-Komga Anthology", false)] public void ParseMangaSpecialTest(string input, bool expected) { Assert.Equal(expected, !string.IsNullOrEmpty(API.Parser.Parser.ParseMangaSpecial(input))); diff --git a/API/Parser/Parser.cs b/API/Parser/Parser.cs index 050a6ec29..79fed5157 100644 --- a/API/Parser/Parser.cs +++ b/API/Parser/Parser.cs @@ -372,7 +372,7 @@ namespace API.Parser { // All Keywords, does not account for checking if contains volume/chapter identification. Parser.Parse() will handle. new Regex( - @"(?Specials?|OneShot|One\-Shot|Omake|Extra( Chapter)?|Art Collection|Side( |_)Stories|(?Specials?|OneShot|One\-Shot|Omake|Extra( Chapter)?|Art Collection|Side( |_)Stories|Bonus)", RegexOptions.IgnoreCase | RegexOptions.Compiled), };