mirror of https://github.com/kiwix/libkiwix.git
Support 'video/*' * 'audio/*' mimetypes in getMediaCount()
This commit is contained in:
parent
18afa97674
commit
3e2810dff4
|
@ -121,7 +121,9 @@ unsigned int Reader::getMediaCount() const
|
||||||
unsigned int counter = 0;
|
unsigned int counter = 0;
|
||||||
|
|
||||||
for (auto &pair:counterMap) {
|
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;
|
counter += pair.second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue