Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Removed "Anthology" from being a special parsing keyword as series are being found where "Anthology" is in the series name. (#304)
Joseph Milazzof8aba21acda3
diff --git a/API.Tests/Parser/MangaParserTests.cs b/API.Tests/Parser/MangaParserTests.csindex 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.csindex 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(- @"(?<Special>Specials?|OneShot|One\-Shot|Omake|Extra( Chapter)?|Art Collection|Side( |_)Stories|(?<!The\s)Anthology|Bonus)",+ @"(?<Special>Specials?|OneShot|One\-Shot|Omake|Extra( Chapter)?|Art Collection|Side( |_)Stories|Bonus)",RegexOptions.IgnoreCase | RegexOptions.Compiled),};