Try opf: variants of XML tags if normal variants are not found.
This commit is contained in:
parent
03b367ee98
commit
5bd1030ad8
|
@ -182,7 +182,15 @@ std::vector<std::string> 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user