mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-09-01 08:15:15 +02:00
Fix:Server crash on scan for library with no metadataPrecedence set #3434
This commit is contained in:
parent
2f49a08c7d
commit
22ad16e11b
3 changed files with 10 additions and 5 deletions
|
@ -70,11 +70,15 @@ class Library extends Model {
|
|||
epubsAllowScriptedContent: false,
|
||||
hideSingleBookSeries: false,
|
||||
onlyShowLaterBooksInContinueSeries: false,
|
||||
metadataPrecedence: ['folderStructure', 'audioMetatags', 'nfoFile', 'txtFiles', 'opfFile', 'absMetadata']
|
||||
metadataPrecedence: this.defaultMetadataPrecedence
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static get defaultMetadataPrecedence() {
|
||||
return ['folderStructure', 'audioMetatags', 'nfoFile', 'txtFiles', 'opfFile', 'absMetadata']
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns {Promise<Library[]>}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue