mirror of https://github.com/kiwix/libkiwix.git
NEW: if "/M/Description" empty, check "/M/Subtitle" (used by Mediawiki Collection ext.)
This commit is contained in:
parent
2240b11224
commit
f165747f16
|
@ -236,6 +236,12 @@ namespace kiwix {
|
||||||
string Reader::getDescription() {
|
string Reader::getDescription() {
|
||||||
string value;
|
string value;
|
||||||
this->getMetatag("Description", value);
|
this->getMetatag("Description", value);
|
||||||
|
|
||||||
|
/* Mediawiki Collection tends to use the "Subtitle" name */
|
||||||
|
if (value.empty()) {
|
||||||
|
this->getMetatag("Subtitle", value);
|
||||||
|
}
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue