Removed faviconMimeType from ContentManager::getBookInfos()

"faviconMimeType" is not used anywhere but is responsible for some of the
too much clutter in ContentManager::getBookInfos().
This commit is contained in:
Veloman Yunkan 2024-02-19 18:20:00 +04:00
parent 98f4064c26
commit a0d4ed573d

View File

@ -297,17 +297,6 @@ ContentManager::BookInfo ContentManager::getBookInfos(QString id, const QStringL
ADD_V("url", getUrl);
ADD_V("name", getName);
ADD_V("downloadId", getDownloadId);
if (key == "faviconMimeType") {
std::string mimeType;
try {
auto item = b->getIllustration(48);
mimeType = item->mimeType;
} catch (...) {
const kiwix::Book::Illustration tempIllustration;
mimeType = tempIllustration.mimeType;
}
values.insert(key, QString::fromStdString(mimeType));
}
if (key == "faviconUrl") {
std::string url;
try {