Try opf: variants of XML tags if normal variants are not found.

This commit is contained in:
tastytea 2021-05-29 18:09:44 +02:00
parent 03b367ee98
commit 5bd1030ad8
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 8 additions and 0 deletions

View File

@ -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)
{