diff --git a/src/zip.cpp b/src/zip.cpp index d997cda..8139673 100644 --- a/src/zip.cpp +++ b/src/zip.cpp @@ -182,7 +182,15 @@ std::vector list_spine(const fs::path &filepath) if (result) { auto manifest{xml.child("package").child("manifest")}; + if (manifest == nullptr) + { + manifest = xml.child("opf:package").child("opf:manifest"); + } auto spine{xml.child("package").child("spine")}; + if (spine == nullptr) + { + spine = xml.child("opf:package").child("opf:spine"); + } for (const auto &itemref : spine) {