mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-02-20 08:05:28 -05:00
Support 'video/*' * 'audio/*' mimetypes in getMediaCount()
This commit is contained in:
@@ -121,7 +121,9 @@ unsigned int Reader::getMediaCount() const
|
||||
unsigned int counter = 0;
|
||||
|
||||
for (auto &pair:counterMap) {
|
||||
if (startsWith(pair.first, "image/")) {
|
||||
if (startsWith(pair.first, "image/") ||
|
||||
startsWith(pair.first, "video/") ||
|
||||
startsWith(pair.first, "audio/")) {
|
||||
counter += pair.second;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user