mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-24 04:44:57 +02:00
Add:Server setting to disable folder watcher #378
This commit is contained in:
parent
1a89b6e493
commit
7f1fc1901b
4 changed files with 47 additions and 58 deletions
|
@ -127,8 +127,13 @@ class Server {
|
|||
await this.scanner.fixDuplicateIds()
|
||||
}
|
||||
|
||||
this.watcher.initWatcher(this.libraries)
|
||||
this.watcher.on('files', this.filesChanged.bind(this))
|
||||
if (this.db.serverSettings.scannerDisableWatcher) {
|
||||
Logger.info(`[Server] Watcher is disabled`)
|
||||
this.watcher.disabled = true
|
||||
} else {
|
||||
this.watcher.initWatcher(this.libraries)
|
||||
this.watcher.on('files', this.filesChanged.bind(this))
|
||||
}
|
||||
}
|
||||
|
||||
async start() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue