mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-18 22:58:29 +01:00
Add options to skip matching media items if they already have an ASIN/ISBN
This commit is contained in:
1 parent
d8ec3bd218
commit
84dd06dfc4
4 files changed
+45
-4
No files matched your search
@@ -4,6 +4,8 @@ const Logger = require('../../Logger')
|
||||
class LibrarySettings {
|
||||
constructor(settings) {
|
||||
this.disableWatcher = false
|
||||
this.skipMatchingMediaWithAsin = false
|
||||
this.skipMatchingMediaWithIsbn = false
|
||||
|
||||
if (settings) {
|
||||
this.construct(settings)
|
||||
@@ -12,11 +14,15 @@ class LibrarySettings {
|
||||
|
||||
construct(settings) {
|
||||
this.disableWatcher = !!settings.disableWatcher
|
||||
this.skipMatchingMediaWithAsin = !!settings.skipMatchingMediaWithAsin
|
||||
this.skipMatchingMediaWithIsbn = !!settings.skipMatchingMediaWithIsbn
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return {
|
||||
disableWatcher: this.disableWatcher
|
||||
disableWatcher: this.disableWatcher,
|
||||
skipMatchingMediaWithAsin: this.skipMatchingMediaWithAsin,
|
||||
skipMatchingMediaWithIsbn: this.skipMatchingMediaWithIsbn
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user