mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #439 from kiwix/mediacount-video-audio
Support 'video/*' * 'audio/*' mimetypes in getMediaCount()
This commit is contained in:
commit
9e032b6eea
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue