mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +01: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
1
index.js
1
index.js
@ -10,6 +10,7 @@ if (isDev) {
|
|||||||
if (devEnv.MetadataPath) process.env.METADATA_PATH = devEnv.MetadataPath
|
if (devEnv.MetadataPath) process.env.METADATA_PATH = devEnv.MetadataPath
|
||||||
if (devEnv.FFmpegPath) process.env.FFMPEG_PATH = devEnv.FFmpegPath
|
if (devEnv.FFmpegPath) process.env.FFMPEG_PATH = devEnv.FFmpegPath
|
||||||
if (devEnv.FFProbePath) process.env.FFPROBE_PATH = devEnv.FFProbePath
|
if (devEnv.FFProbePath) process.env.FFPROBE_PATH = devEnv.FFProbePath
|
||||||
|
if (devEnv.SkipBinariesCheck) process.env.SKIP_BINARIES_CHECK = '1'
|
||||||
process.env.SOURCE = 'local'
|
process.env.SOURCE = 'local'
|
||||||
process.env.ROUTER_BASE_PATH = devEnv.RouterBasePath || ''
|
process.env.ROUTER_BASE_PATH = devEnv.RouterBasePath || ''
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,14 @@ class BinaryManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
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
|
if (this.initialized) return
|
||||||
|
|
||||||
const missingBinaries = await this.findRequiredBinaries()
|
const missingBinaries = await this.findRequiredBinaries()
|
||||||
if (missingBinaries.length == 0) return
|
if (missingBinaries.length == 0) return
|
||||||
await this.removeOldBinaries(missingBinaries)
|
await this.removeOldBinaries(missingBinaries)
|
||||||
|
Loading…
Reference in New Issue
Block a user