Add: map series and series-part meta tags #129

This commit is contained in:
advplyr 2021-10-23 17:32:42 -05:00
parent 98c1ee01fd
commit b32b99418a
3 changed files with 25 additions and 7 deletions

View file

@ -275,10 +275,19 @@ class Book {
{
tag: 'tagGenre',
key: 'genres'
},
{
tag: 'tagSeries',
key: 'series'
},
{
tag: 'tagSeriesPart',
key: 'volumeNumber'
}
]
var updatePayload = {}
// Metadata is only mapped to the book if it is empty
MetadataMapArray.forEach((mapping) => {
if (audioFileMetadata[mapping.tag]) {
// Genres can contain multiple