mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 01:15:06 +02:00
Fix:Catch error with transcodes writing concat file & do not fallback to AAC encode if error message is a failure to find include file
This commit is contained in:
parent
3ab638ed61
commit
1b2cf50633
2 changed files with 17 additions and 5 deletions
|
@ -35,9 +35,14 @@ async function writeConcatFile(tracks, outputPath, startTime = 0) {
|
|||
return line
|
||||
})
|
||||
var inputstr = trackPaths.join('\n\n')
|
||||
await fs.writeFile(outputPath, inputstr)
|
||||
|
||||
return firstTrackStartTime
|
||||
try {
|
||||
await fs.writeFile(outputPath, inputstr)
|
||||
return firstTrackStartTime
|
||||
} catch (error) {
|
||||
Logger.error(`[ffmpegHelpers] Failed to write stream concat file at "${outputPath}"`, error)
|
||||
return null
|
||||
}
|
||||
}
|
||||
module.exports.writeConcatFile = writeConcatFile
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue