mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-09 07:14:52 +02:00
Update:Scanner recognizes asin in book folder names #1852
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user