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
When we have a special marker, ensure we fall back to folder parsing to try and group correctly to the actual series before just accepting what we parsed. (#684)
Joseph Milazzo26d1fbc599b5
diff --git a/API/Parser/Parser.cs b/API/Parser/Parser.csindex e082f06e0..b219e264f 100644--- a/API/Parser/Parser.cs+++ b/API/Parser/Parser.cs@@ -533,14 +533,16 @@ namespace API.Parserret.Edition = edition;}- var isSpecial = ParseMangaSpecial(fileName);+ var isSpecial = type == LibraryType.Comic ? ParseComicSpecial(fileName) : ParseMangaSpecial(fileName);// We must ensure that we can only parse a special out. As some files will have v20 c171-180+Omake and that// could cause a problem as Omake is a special term, but there is valid volume/chapter information.if (ret.Chapters == DefaultChapter && ret.Volumes == DefaultVolume && !string.IsNullOrEmpty(isSpecial)){ret.IsSpecial = true;+ ParseFromFallbackFolders(filePath, rootPath, type, ref ret);}+ // If we are a special with marker, we need to ensure we use the correct series name. we can do this by falling back to Folder nameif (HasSpecialMarker(fileName)){ret.IsSpecial = true;@@ -549,8 +551,6 @@ namespace API.ParserParseFromFallbackFolders(filePath, rootPath, type, ref ret);}- // here is the issue. If we are a special with marker, we need to ensure we use the correct series name.- // we can do this by falling backif (string.IsNullOrEmpty(ret.Series)){