mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 19:46:12 -04:00
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:
parent
98f4064c26
commit
a0d4ed573d
@ -297,17 +297,6 @@ ContentManager::BookInfo ContentManager::getBookInfos(QString id, const QStringL
|
|||||||
ADD_V("url", getUrl);
|
ADD_V("url", getUrl);
|
||||||
ADD_V("name", getName);
|
ADD_V("name", getName);
|
||||||
ADD_V("downloadId", getDownloadId);
|
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") {
|
if (key == "faviconUrl") {
|
||||||
std::string url;
|
std::string url;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user