New data model fix scan for creating series/authors and mapping ebooks

This commit is contained in:
advplyr 2022-03-13 13:47:36 -05:00
parent ea9ec13845
commit 6597fca576
7 changed files with 134 additions and 50 deletions

View file

@ -247,7 +247,7 @@ class BookMetadata {
parseAuthorsTag(authorsTag) {
var parsed = parseNameString(authorsTag)
if (!parsed) return []
return parsed.map((au) => {
return (parsed.names || []).map((au) => {
return {
id: `new-${Math.floor(Math.random() * 1000000)}`,
name: au