mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-11-24 20:05:41 +01:00
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:
parent
a41e9bae5d
commit
da8b481168
@ -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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user