Skip to content

Commit 39501d8

Browse files
authored
Merge pull request #476 from openzim/new_illustrations_api
Switched to the new illustrations API
2 parents 74e4ec1 + cadc6dd commit 39501d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/zimcheck/checks.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ void test_metadata(const zim::Archive& archive, ErrorLogger& reporter) {
267267
void test_favicon(const zim::Archive& archive, ErrorLogger& reporter) {
268268
reporter.infoMsg("[INFO] Searching for Favicon...");
269269

270-
const auto illustrationSizes = archive.getIllustrationSizes();
271-
if ( illustrationSizes.find(48) == illustrationSizes.end() )
270+
if ( archive.getIllustrationInfos(48, 48, 1).empty() )
272271
reporter.addMsg(MsgId::MISSING_FAVICON, {});
273272
}
274273

0 commit comments

Comments
 (0)