mirror of https://github.com/kiwix/libkiwix.git
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:
parent
a92e9d8756
commit
f3c96b23fd
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue