Add support for tags in AudioFileScanner

Using TagGenre1 because support already built in with prober.
(audiobookshelf/server/utils/prober.js)
This commit is contained in:
srobe92 2025-09-15 17:26:21 -04:00 committed by GitHub
parent a41e9bae5d
commit da8b481168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,6 +255,10 @@ class AudioFileScanner {
tag: 'tagGenre', tag: 'tagGenre',
key: 'genres' key: 'genres'
}, },
{
tag: 'tagGenre1',
key: 'tags'
},
{ {
tag: 'tagSeries', tag: 'tagSeries',
altTag: 'tagGrouping', altTag: 'tagGrouping',
@ -293,6 +297,8 @@ class AudioFileScanner {
bookMetadata.authors = parseNameString.parse(value)?.names || [] bookMetadata.authors = parseNameString.parse(value)?.names || []
} else if (mapping.key === 'genres') { } else if (mapping.key === 'genres') {
bookMetadata.genres = this.parseGenresString(value) bookMetadata.genres = this.parseGenresString(value)
} else if (mapping.key === 'tags') {
bookMetadata.tags = this.parseGenresString(value)
} else if (mapping.key === 'series') { } else if (mapping.key === 'series') {
// If series was embedded in the grouping tag, then parse it with semicolon separator and sequence in the same string // If series was embedded in the grouping tag, then parse it with semicolon separator and sequence in the same string
// e.g. "Test Series; Series Name #1; Other Series #2" // e.g. "Test Series; Series Name #1; Other Series #2"