mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Merge pull request #936 from kiwix/deprecatedFunc
This commit is contained in:
commit
f7eaee72f9
@ -74,22 +74,10 @@ QStringList ContentManager::getBookInfos(QString id, const QStringList &keys)
|
|||||||
ADD_V("path", getPath);
|
ADD_V("path", getPath);
|
||||||
ADD_V("title", getTitle);
|
ADD_V("title", getTitle);
|
||||||
ADD_V("description", getDescription);
|
ADD_V("description", getDescription);
|
||||||
ADD_V("language", getLanguage);
|
|
||||||
ADD_V("creator", getCreator);
|
|
||||||
ADD_V("publisher", getPublisher);
|
|
||||||
ADD_V("date", getDate);
|
ADD_V("date", getDate);
|
||||||
ADD_V("url", getUrl);
|
ADD_V("url", getUrl);
|
||||||
ADD_V("name", getName);
|
ADD_V("name", getName);
|
||||||
ADD_V("origId", getOrigId);
|
|
||||||
ADD_V("downloadId", getDownloadId);
|
ADD_V("downloadId", getDownloadId);
|
||||||
if (key == "favicon") {
|
|
||||||
try {
|
|
||||||
auto s = b->getIllustration(48)->getData();
|
|
||||||
values.append(QByteArray::fromStdString(s).toBase64());
|
|
||||||
} catch(...) {
|
|
||||||
values.append(QByteArray());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (key == "faviconMimeType") {
|
if (key == "faviconMimeType") {
|
||||||
std::string mimeType;
|
std::string mimeType;
|
||||||
try {
|
try {
|
||||||
@ -115,12 +103,6 @@ QStringList ContentManager::getBookInfos(QString id, const QStringList &keys)
|
|||||||
if (key == "size") {
|
if (key == "size") {
|
||||||
values.append(QString::number(b->getSize()));
|
values.append(QString::number(b->getSize()));
|
||||||
}
|
}
|
||||||
if (key == "articleCount") {
|
|
||||||
values.append(QString::number(b->getArticleCount()));
|
|
||||||
}
|
|
||||||
if (key == "mediaCount") {
|
|
||||||
values.append(QString::number(b->getMediaCount()));
|
|
||||||
}
|
|
||||||
if (key == "tags") {
|
if (key == "tags") {
|
||||||
QStringList tagList = QString::fromStdString(b->getTags()).split(';');
|
QStringList tagList = QString::fromStdString(b->getTags()).split(';');
|
||||||
QMap<QString, bool> displayTagMap;
|
QMap<QString, bool> displayTagMap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user