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
+5 -2
View File
@@ -49,7 +49,7 @@ public interface IScannerService
[AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
Task ScanSeries(int seriesId, bool bypassFolderOptimizationChecks = true);
Task ScanFolder(string folder, string originalPath);
Task ScanFolder(string folder, string originalPath, bool abortOnNoSeriesMatch = false);
Task AnalyzeFiles();
}
@@ -142,7 +142,8 @@ public class ScannerService : IScannerService
/// <remarks>This will Schedule the job to run 1 minute in the future to allow for any close-by duplicate requests to be dropped</remarks>
/// <param name="folder">Normalized folder</param>
/// <param name="originalPath">If invoked from LibraryWatcher, this maybe a nested folder and can allow for optimization</param>
public async Task ScanFolder(string folder, string originalPath)
/// <param name="abortOnNoSeriesMatch"></param>
public async Task ScanFolder(string folder, string originalPath, bool abortOnNoSeriesMatch = false)
{
Series? series = null;
try
@@ -173,6 +174,8 @@ public class ScannerService : IScannerService
return;
}
if (abortOnNoSeriesMatch) return;
// This is basically rework of what's already done in Library Watcher but is needed if invoked via API
var parentDirectory = _directoryService.GetParentDirectoryName(folder);