Skip to content

Commit

Permalink
add author and Description metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Monirzadeh committed Aug 26, 2023
1 parent 49e8ba8 commit b6f4e16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/core/ebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func GenerateEbook(req ProcessRequest, dstPath string) (book model.Bookmark, err
//epubWriter := zip.NewWriter(tmpFile)
ebook := epub.NewEpub(book.Title)
ebook.SetTitle(book.Title)
ebook.SetAuthor(book.Author)
ebook.SetDescription(book.Excerpt)
ebook.AddSection(string(book.HTML), book.Title, "", "")

Check failure on line 65 in internal/core/ebook.go

View workflow job for this annotation

GitHub Actions / call-lint / golangci

unnecessary conversion (unconvert)
ebook.EmbedImages()
ebook.Write(tmpFile.Name())
Expand Down

0 comments on commit b6f4e16

Please sign in to comment.