mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 19:04:57 +02:00
Update:Scanner recognizes asin in book folder names #1852
This commit is contained in:
parent
dcdd4bb20b
commit
07ad81969c
3 changed files with 59 additions and 16 deletions
|
@ -309,7 +309,7 @@ class LibraryItemScanData {
|
|||
* @param {Object} bookMetadata
|
||||
*/
|
||||
setBookMetadataFromFilenames(bookMetadata) {
|
||||
const keysToMap = ['title', 'subtitle', 'publishedYear']
|
||||
const keysToMap = ['title', 'subtitle', 'publishedYear', 'asin']
|
||||
for (const key in this.mediaMetadata) {
|
||||
if (keysToMap.includes(key) && this.mediaMetadata[key]) {
|
||||
bookMetadata[key] = this.mediaMetadata[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue