From f3c96b23fdef460009051a6bda62921a1fb35d79 Mon Sep 17 00:00:00 2001 From: Maneesh P M Date: Sat, 19 Jun 2021 10:23:24 +0530 Subject: [PATCH] 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. --- src/reader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reader.cpp b/src/reader.cpp index ded00f287..c493ca72d 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -184,8 +184,7 @@ Entry Reader::getMainPage() const bool Reader::getFavicon(string& content, string& mimeType) const { try { - auto entry = zimArchive->getFaviconEntry(); - auto item = entry.getItem(true); + auto item = zimArchive->getIllustrationItem(); content = item.getData(); mimeType = item.getMimetype(); return true;