Restrict binary manager to Windows or development

This commit is contained in:
advplyr 2024-01-02 14:24:59 -06:00
parent aa63aa6cf3
commit b489bf9236

View File

@ -121,7 +121,11 @@ class Server {
const libraries = await Database.libraryModel.getAllOldLibraries()
await this.cronManager.init(libraries)
this.apiCacheManager.init()
await this.binaryManager.init()
// Download ffmpeg & ffprobe if not found (Currently only in use for Windows installs)
if (global.isWin || Logger.isDev) {
await this.binaryManager.init()
}
if (Database.serverSettings.scannerDisableWatcher) {
Logger.info(`[Server] Watcher is disabled`)