mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Reverted change to loadExtensions, updated to remove SKIP_BINARIES_CHECK
This commit is contained in:
parent
09c95aa845
commit
844835f797
4 changed files with 2 additions and 12 deletions
|
|
@ -5,6 +5,5 @@ module.exports.config = {
|
|||
ConfigPath: Path.resolve('config'),
|
||||
MetadataPath: Path.resolve('metadata'),
|
||||
FFmpegPath: '/usr/bin/ffmpeg',
|
||||
FFProbePath: '/usr/bin/ffprobe',
|
||||
SkipBinariesCheck: true
|
||||
FFProbePath: '/usr/bin/ffprobe'
|
||||
}
|
||||
1
index.js
1
index.js
|
|
@ -9,7 +9,6 @@ if (isDev) {
|
|||
if (devEnv.MetadataPath) process.env.METADATA_PATH = devEnv.MetadataPath
|
||||
if (devEnv.FFmpegPath) process.env.FFMPEG_PATH = devEnv.FFmpegPath
|
||||
if (devEnv.FFProbePath) process.env.FFPROBE_PATH = devEnv.FFProbePath
|
||||
if (devEnv.SkipBinariesCheck) process.env.SKIP_BINARIES_CHECK = '1'
|
||||
if (devEnv.BackupPath) process.env.BACKUP_PATH = devEnv.BackupPath
|
||||
process.env.SOURCE = 'local'
|
||||
process.env.ROUTER_BASE_PATH = devEnv.RouterBasePath || ''
|
||||
|
|
|
|||
|
|
@ -228,8 +228,6 @@ class Database {
|
|||
const db = await this.sequelize.dialect.connectionManager.getConnection()
|
||||
if (typeof db?.loadExtension !== 'function') throw new Error('Failed to get db connection for loading extensions')
|
||||
|
||||
extensions = extensions.filter(ext => ext !== undefined)
|
||||
|
||||
for (const ext of extensions) {
|
||||
Logger.info(`[Database] Loading extension ${ext}`)
|
||||
await new Promise((resolve, reject) => {
|
||||
|
|
|
|||
|
|
@ -273,12 +273,6 @@ 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue