mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-01 08:44:40 +02:00
Update:Scanner adjustable number of parallel audio probes to use less CPU
This commit is contained in:
parent
277a5fa37c
commit
86ee4dcff2
10 changed files with 372 additions and 71 deletions
9
server/utils/probeWorker.js
Normal file
9
server/utils/probeWorker.js
Normal file
|
@ -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,
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue