mirror of
https://codeberg.org/scip/epuppy.git
synced 2025-12-18 04:51:01 +01:00
Fix more parser failures (#10)
* stabilize section parsing, now seems to read all ebooks I tested with * refactored Open() into smaller funcs * bump version
This commit is contained in:
@@ -9,6 +9,11 @@ import (
|
||||
"path"
|
||||
)
|
||||
|
||||
// a section in the book
|
||||
type Section struct {
|
||||
File, Title, MediaType string
|
||||
}
|
||||
|
||||
// Book epub book
|
||||
type Book struct {
|
||||
Ncx Ncx `json:"ncx"`
|
||||
@@ -20,6 +25,8 @@ type Book struct {
|
||||
CoverImage []byte
|
||||
CoverFile string
|
||||
CoverMediaType string
|
||||
Sections []Section
|
||||
dumpxml bool
|
||||
}
|
||||
|
||||
// Open open resource file
|
||||
|
||||
Reference in New Issue
Block a user