mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-18 14:48:29 +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:
1 parent
3ab638ed61
commit
1b2cf50633
2 files changed
+17
-5
No files matched your search
@@ -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