mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +01:00
Update server/libs/nodeFfprobe/index.js
This commit is contained in:
parent
dd0d2e9f55
commit
0f772fd3cf
@ -22,8 +22,7 @@ module.exports = (function () {
|
|||||||
proc.on('error', err => reject(err))
|
proc.on('error', err => reject(err))
|
||||||
proc.on('close', () => {
|
proc.on('close', () => {
|
||||||
try {
|
try {
|
||||||
let result = JSON.parse(probeData.join(''))
|
resolve(JSON.parse(probeData.join('')))
|
||||||
resolve(result);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user