Support 'video/*' * 'audio/*' mimetypes in getMediaCount()

This commit is contained in:
Emmanuel Engelhart 2021-01-07 12:32:32 +01:00
parent 18afa97674
commit 3e2810dff4
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}