Skip to content

Commit

Permalink
fixup! Update kiwix::book to use libzim structure
Browse files Browse the repository at this point in the history
  • Loading branch information
maneeshpm committed Jul 7, 2021
1 parent 450bf8a commit b50a2a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/book.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
#define KIWIX_BOOK_H

#include <string>
#include <zim/archive.h>

namespace pugi {
class xml_node;
}

namespace zim {
class Archive;
}

namespace kiwix
{

Expand Down
3 changes: 2 additions & 1 deletion src/book.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include "tools/pathTools.h"
#include "tools/archiveTools.h"

#include <zim/archive.h>

#include <pugixml.hpp>

namespace kiwix
Expand Down Expand Up @@ -98,7 +100,6 @@ void Book::update(const zim::Archive& archive) {
m_flavour = getMetaFlavour(archive);
m_tags = getMetaTags(archive);
m_category = getCategoryFromTags();
m_origId = getArchiveOrigId(archive);
m_articleCount = archive.getArticleCount();
m_mediaCount = getArchiveMediaCount(archive);
m_size = static_cast<uint64_t>(getArchiveFileSize(archive)) << 10;
Expand Down

0 comments on commit b50a2a2

Please sign in to comment.