mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-20 10:15:30 -04:00
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;
|
||||
|
||||
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…
x
Reference in New Issue
Block a user