Skip to content

Commit

Permalink
[zimwriterfs] Use the correct method to add the illustration to zim f…
Browse files Browse the repository at this point in the history
…ile.

Fix #355
  • Loading branch information
mgautierfr committed Jul 28, 2023
1 parent 06e43a0 commit 2d14520
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/zimwriterfs/zimwriterfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ bool checkMetadata(const zim::Metadata& metadata)
void addMetadata(ZimCreatorFS& zimCreator, const zim::Metadata& metadata)
{
for ( const auto& kv : metadata ) {
zimCreator.addMetadata(kv.first, kv.second);
if (kv.first == "Illustration_48x48@1") {
zimCreator.addIllustration(48, kv.second);
} else {
zimCreator.addMetadata(kv.first, kv.second);
}
}
}

Expand Down

0 comments on commit 2d14520

Please sign in to comment.