mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-30 15:55:26 +02:00
Update:Adding support for skipping check for ffmpeg/ffprobe binaries with environment variable SKIP_BINARIES_CHECK
- Set SKIP_BINARIES_CHECK=1 env variable to skip - Or set SkipBinariesCheck: true in dev.js #2741
This commit is contained in:
parent
316aeba1b0
commit
99f0799a11
2 changed files with 8 additions and 0 deletions
|
@ -24,7 +24,14 @@ class BinaryManager {
|
|||
}
|
||||
|
||||
async init() {
|
||||
// Optional skip binaries check
|
||||
if (process.env.SKIP_BINARIES_CHECK === '1') {
|
||||
Logger.info('[BinaryManager] Skipping check for binaries')
|
||||
return
|
||||
}
|
||||
|
||||
if (this.initialized) return
|
||||
|
||||
const missingBinaries = await this.findRequiredBinaries()
|
||||
if (missingBinaries.length == 0) return
|
||||
await this.removeOldBinaries(missingBinaries)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue