Koreader Progress Sync for all files (#4323)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo
2026-01-04 12:17:56 -07:00
committed by GitHub
parent f4d9f5be81
commit f5d0ad2ed2
175 changed files with 1900 additions and 1435 deletions
@@ -51,7 +51,7 @@ public class BasicParser(IDirectoryService directoryService, IDefaultParser imag
var isSpecial = Parser.IsSpecial(fileName, type);
// 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 == Parser.DefaultChapter && ret.Volumes == Parser.LooseLeafVolume && isSpecial)
if (Parser.IsDefaultChapter(ret.Chapters) && Parser.IsLooseLeafVolume(ret.Volumes) && isSpecial)
{
ret.IsSpecial = true;
ParseFromFallbackFolders(filePath, rootPath, type, ref ret); // NOTE: This can cause some complications, we should try to be a bit less aggressive to fallback to folder
@@ -108,7 +108,7 @@ public class BasicParser(IDirectoryService directoryService, IDefaultParser imag
if (ret.Volumes == Parser.LooseLeafVolume && ret.Chapters == Parser.DefaultChapter)
if (Parser.IsLooseLeafVolume(ret.Volumes) && Parser.IsDefaultChapter(ret.Chapters))
{
ret.IsSpecial = true;
}