mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-29 11:52:45 +01:00
Add start of library scan scheduling and cron expression builder
This commit is contained in:
1 parent
01333b6401
commit
9a57fcad40
4 files changed
+255
-3
No files matched your search
@@ -6,6 +6,7 @@ class LibrarySettings {
|
||||
this.disableWatcher = false
|
||||
this.skipMatchingMediaWithAsin = false
|
||||
this.skipMatchingMediaWithIsbn = false
|
||||
this.autoScanCronExpression = null
|
||||
|
||||
if (settings) {
|
||||
this.construct(settings)
|
||||
@@ -17,6 +18,7 @@ class LibrarySettings {
|
||||
this.disableWatcher = !!settings.disableWatcher
|
||||
this.skipMatchingMediaWithAsin = !!settings.skipMatchingMediaWithAsin
|
||||
this.skipMatchingMediaWithIsbn = !!settings.skipMatchingMediaWithIsbn
|
||||
this.autoScanCronExpression = settings.autoScanCronExpression || null
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
@@ -24,7 +26,8 @@ class LibrarySettings {
|
||||
coverAspectRatio: this.coverAspectRatio,
|
||||
disableWatcher: this.disableWatcher,
|
||||
skipMatchingMediaWithAsin: this.skipMatchingMediaWithAsin,
|
||||
skipMatchingMediaWithIsbn: this.skipMatchingMediaWithIsbn
|
||||
skipMatchingMediaWithIsbn: this.skipMatchingMediaWithIsbn,
|
||||
autoScanCronExpression: this.autoScanCronExpression
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user