Fix parse subject
This commit is contained in:
parent
18baa2938b
commit
b7c1d74e83
2 changed files with 1 additions and 2 deletions
|
@ -92,7 +92,7 @@ func parseSubject(subject []string) []string {
|
||||||
parsed := subject
|
parsed := subject
|
||||||
for _, sep := range []string{"/", ","} {
|
for _, sep := range []string{"/", ","} {
|
||||||
p2 := []string{}
|
p2 := []string{}
|
||||||
for _, s := range subject {
|
for _, s := range parsed {
|
||||||
p2 = append(p2, strings.Split(s, sep)...)
|
p2 = append(p2, strings.Split(s, sep)...)
|
||||||
}
|
}
|
||||||
parsed = p2
|
parsed = p2
|
||||||
|
|
|
@ -61,7 +61,6 @@ func processFile(req uploadRequest, db database.DB, store storage.Store) {
|
||||||
book.Cover = GetCover(epub, book.ID, store)
|
book.Cover = GetCover(epub, book.ID, store)
|
||||||
|
|
||||||
err = db.AddBook(book)
|
err = db.AddBook(book)
|
||||||
log.Error(":", book.Lang, ":")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error storing metadata (", book.ID, "): ", err)
|
log.Error("Error storing metadata (", book.ID, "): ", err)
|
||||||
return
|
return
|
||||||
|
|
Reference in a new issue