mirror of https://github.com/kiwix/libkiwix.git
Added a couple of notes on data consistency
This commit is contained in:
parent
9f0db6b7fa
commit
c129952605
|
@ -104,6 +104,7 @@ void Book::update(const zim::Archive& archive) {
|
|||
|
||||
Illustration& favicon = getMutableDefaultIllustration();
|
||||
getArchiveFavicon(archive, 48, favicon.data, favicon.mimeType);
|
||||
// XXX: isn't favicon.url neglected here?
|
||||
}
|
||||
|
||||
#define ATTR(name) node.attribute(name).value()
|
||||
|
@ -182,6 +183,7 @@ void Book::updateFromOpds(const pugi::xml_node& node, const std::string& urlHost
|
|||
}
|
||||
if (rel == "http://opds-spec.org/image/thumbnail") {
|
||||
Illustration& favicon = getMutableDefaultIllustration();
|
||||
// XXX: shouldn't favicon.data be cleared()?
|
||||
favicon.url = urlHost + linkNode.attribute("href").value();
|
||||
favicon.mimeType = linkNode.attribute("type").value();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue