Use getIllustrationItem instead of getFaviconEntry method

With openzim/libzim#540 we now have a new function to get
illustration(previously favicon in 48x48 size and unity scale) in
multiple sizes. We need to replace getFaviconEntry with this new
getIllustrationItem method.
This commit is contained in:
Maneesh P M 2021-06-19 10:23:24 +05:30
parent a92e9d8756
commit f3c96b23fd
1 changed files with 1 additions and 2 deletions

View File

@ -184,8 +184,7 @@ Entry Reader::getMainPage() const
bool Reader::getFavicon(string& content, string& mimeType) const bool Reader::getFavicon(string& content, string& mimeType) const
{ {
try { try {
auto entry = zimArchive->getFaviconEntry(); auto item = zimArchive->getIllustrationItem();
auto item = entry.getItem(true);
content = item.getData(); content = item.getData();
mimeType = item.getMimetype(); mimeType = item.getMimetype();
return true; return true;