From 26d1fbc599b5a9df708db4f4b7a27f4e7e65c049 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Sun, 17 Oct 2021 12:44:30 -0700 Subject: [PATCH] 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) Fixed a missed parsing case where comic special parsing wasn't being called on comic libraries. --- API/Parser/Parser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/API/Parser/Parser.cs b/API/Parser/Parser.cs index e082f06e0..b219e264f 100644 --- a/API/Parser/Parser.cs +++ b/API/Parser/Parser.cs @@ -533,14 +533,16 @@ namespace API.Parser ret.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 name if (HasSpecialMarker(fileName)) { ret.IsSpecial = true; @@ -549,8 +551,6 @@ namespace API.Parser ParseFromFallbackFolders(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 back if (string.IsNullOrEmpty(ret.Series)) {