Skip to content

Commit

Permalink
Correctly print the mainpage with zimdump.
Browse files Browse the repository at this point in the history
The mainpage stored in new zim files is now a redirection to the "real"
mainpage. Let's resolve the redirect before printing the path.


Fix openzim/libzim#674
  • Loading branch information
mgautierfr committed Mar 16, 2022
1 parent 288dce5 commit d14b6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zimdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void ZimDumper::printInfo()
}

if (m_archive.hasMainEntry()) {
std::cout << "main page: " << m_archive.getMainEntry().getPath() << "\n";
std::cout << "main page: " << m_archive.getMainEntry().getItem(true).getPath() << "\n";
} else {
std::cout << "main page: -\n";
}
Expand Down

0 comments on commit d14b6fd

Please sign in to comment.