mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-04 14:06:28 +01:00
Update:Scanner adjustable number of parallel audio probes to use less CPU
This commit is contained in:
1 parent
277a5fa37c
commit
86ee4dcff2
10 files changed
+372
-71
No files matched your search
@@ -0,0 +1,9 @@
|
||||
const { parentPort } = require("worker_threads")
|
||||
const prober = require('./prober')
|
||||
|
||||
parentPort.on("message", async ({ mediaPath }) => {
|
||||
const results = await prober.probe(mediaPath)
|
||||
parentPort.postMessage({
|
||||
data: results,
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user