mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-29 12:52:13 +02:00
fix(library): preserve indexed tracks when a full scan is incomplete
This commit is contained in:
@@ -556,7 +556,11 @@ import UniformTypeIdentifiers
|
||||
throw invalidArgumentsError(call.method)
|
||||
}
|
||||
let count = try coreBackend.scanLibraryFolderToNdjsonFile(folder: folderPath, output: outputPath)
|
||||
return ["path": outputPath, "count": count]
|
||||
guard let progress = parseJsonPayload(try coreBackend.getLibraryScanProgress()) as? [String: Any],
|
||||
let errorCount = progress["error_count"] as? Int else {
|
||||
throw invalidArgumentsError("scanLibraryFolderToNDJSONFile: missing scan summary")
|
||||
}
|
||||
return ["path": outputPath, "count": count, "error_count": errorCount]
|
||||
|
||||
case "scanLibraryFolderIncremental":
|
||||
let args = call.arguments as! [String: Any]
|
||||
|
||||
Reference in New Issue
Block a user