Add:Button for testing scan probes in audiobook tracks table

This commit is contained in:
advplyr 2022-10-02 15:24:32 -05:00
parent d22b475539
commit c254dc5144
6 changed files with 80 additions and 3 deletions

View file

@ -155,4 +155,19 @@ module.exports.probe = (filepath, verbose = false) => {
error
}
})
}
module.exports.rawProbe = (filepath) => {
if (process.env.TONE_PATH) {
tone.TONE_PATH = process.env.TONE_PATH
}
return tone.dump(filepath).then((dumpPayload) => {
return dumpPayload
}).catch((error) => {
Logger.error(`[toneProber] Failed to probe file at path "${filepath}"`, error)
return {
error
}
})
}