fix(ios): handle library scan count output

This commit is contained in:
zarzet
2026-08-25 01:24:30 +07:00
parent 5c4b99b6df
commit aafddde6bb
+10 -1
View File
@@ -1084,12 +1084,21 @@ import Gobackend
else {
throw invalidArgumentsError(call.method)
}
let count = GobackendScanLibraryFolderToNDJSONFileJSON(
var count = 0
let succeeded = GobackendScanLibraryFolderToNDJSONFileJSON(
folderPath,
outputPath,
&count,
&error
)
if let error = error { throw error }
if !succeeded {
throw NSError(
domain: "SpotiFLAC",
code: -1,
userInfo: [NSLocalizedDescriptionKey: "Library scan failed"]
)
}
return ["path": outputPath, "count": count]
case "scanLibraryFolderIncremental":