Rename author to authors and subject to tags
This commit is contained in:
parent
e72de38725
commit
7f9c172853
17 changed files with 37 additions and 39 deletions
|
@ -19,7 +19,7 @@ func EpubMetadata(epub *epubgo.Epub) database.Book {
|
|||
case "title":
|
||||
book.Title = cleanStr(strings.Join(data, ", "))
|
||||
case "creator":
|
||||
book.Author = parseAuthr(data)
|
||||
book.Authors = parseAuthr(data)
|
||||
case "contributor":
|
||||
book.Contributor = cleanStr(strings.Join(data, ", "))
|
||||
case "publisher":
|
||||
|
@ -27,7 +27,7 @@ func EpubMetadata(epub *epubgo.Epub) database.Book {
|
|||
case "description":
|
||||
book.Description = parseDescription(data)
|
||||
case "subject":
|
||||
book.Subject = parseSubject(data)
|
||||
book.Tags = parseSubject(data)
|
||||
case "date":
|
||||
book.Date = parseDate(data)
|
||||
case "language":
|
||||
|
|
Reference in a new issue