Make the opds_dumper respect the provided nameMapper used in the server.

Fix #828
This commit is contained in:
Matthieu Gautier
2022-10-05 15:41:04 +02:00
parent cc849b31da
commit 96fb4236a6
7 changed files with 101 additions and 20 deletions

View File

@ -27,6 +27,7 @@
#include <pugixml.hpp>
#include "library.h"
#include "name_mapper.h"
using namespace std;
@ -41,7 +42,7 @@ class OPDSDumper
{
public:
OPDSDumper() = default;
OPDSDumper(Library* library);
OPDSDumper(Library* library, NameMapper* NameMapper);
~OPDSDumper();
/**
@ -110,6 +111,7 @@ class OPDSDumper
protected:
kiwix::Library* library;
kiwix::NameMapper* nameMapper;
std::string libraryId;
std::string rootLocation;
int m_totalResults;