mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-20 13:53:19 +01: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user