mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			238 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			238 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { parentPort } = require("worker_threads")
 | 
						|
const prober = require('./prober')
 | 
						|
 | 
						|
parentPort.on("message", async ({ mediaPath }) => {
 | 
						|
  const results = await prober.probe(mediaPath)
 | 
						|
  parentPort.postMessage({
 | 
						|
    data: results,
 | 
						|
  })
 | 
						|
}) |