mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
NEW: if "/M/Description" empty, check "/M/Subtitle" (used by Mediawiki Collection ext.)
This commit is contained in:
@ -236,6 +236,12 @@ namespace kiwix {
|
||||
string Reader::getDescription() {
|
||||
string value;
|
||||
this->getMetatag("Description", value);
|
||||
|
||||
/* Mediawiki Collection tends to use the "Subtitle" name */
|
||||
if (value.empty()) {
|
||||
this->getMetatag("Subtitle", value);
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user