Added save button to Tools tab

Still working on getting the default bitrate to be persistent
This commit is contained in:
Nicholas W 2024-01-19 17:32:11 +00:00
parent 5b85d01d55
commit 71ab302d11
5 changed files with 24 additions and 7 deletions

View file

@ -9,6 +9,7 @@ class LibrarySettings {
this.autoScanCronExpression = null
this.audiobooksOnly = false
this.hideSingleBookSeries = false // Do not show series that only have 1 book
this.bitrateType = 'maxBitrate'
this.metadataPrecedence = ['folderStructure', 'audioMetatags', 'nfoFile', 'txtFiles', 'opfFile', 'absMetadata']
if (settings) {
@ -24,6 +25,7 @@ class LibrarySettings {
this.autoScanCronExpression = settings.autoScanCronExpression || null
this.audiobooksOnly = !!settings.audiobooksOnly
this.hideSingleBookSeries = !!settings.hideSingleBookSeries
this.bitrateType = settings.bitrateType || 'maxBitrate'
if (settings.metadataPrecedence) {
this.metadataPrecedence = [...settings.metadataPrecedence]
} else {
@ -41,6 +43,7 @@ class LibrarySettings {
autoScanCronExpression: this.autoScanCronExpression,
audiobooksOnly: this.audiobooksOnly,
hideSingleBookSeries: this.hideSingleBookSeries,
bitrateType: this.bitrateType,
metadataPrecedence: [...this.metadataPrecedence]
}
}