odmpy icon indicating copy to clipboard operation
odmpy copied to clipboard

Fix download using spine information from window.bData

Open ahxxm opened this issue 9 months ago • 3 comments

This is similar to my another PR for the new format, the branch is based on #59

audiobooks work just fine with command odmpy libby --ebooks --direct --chapters --merge

for epub books command is the same, and I picked a small one to test locally,

  • it can generate an EPUB correctly with ToC, text styles like bold and italic are preserved(since they are from base64-encoded HTML?)
  • images are also saved, but they didn't exist in bData anymore, I'm not 100% satisfied with the way they are downloaded. e.g. when image src is ../Images/cover.jpg, it can still be downloaded, but need a fix on HTML to display, instead of preserving the origin file hierarchy
  • CSS is downloaded similarly

There are 2 commits trying to make CI happy, but apprently CI isn't that easy to please: linter passed, tests hardcoded the outdated openbook.json and should be fixed as well

ahxxm avatar May 02 '24 06:05 ahxxm