mirror of https://github.com/kiwix/libkiwix.git
+ if no title is found in the HTML, get the one of the ZIM file
This commit is contained in:
parent
e19e53e373
commit
ddea078734
|
@ -101,7 +101,12 @@ namespace kiwix {
|
|||
std::cout << "Indexing " << url << "..." << std::endl;
|
||||
}
|
||||
|
||||
/* Get the title */
|
||||
string accentedTitle = this->htmlParser.title;
|
||||
if (accentedTitle.empty()) {
|
||||
accentedTitle = currentArticle.getTitle();
|
||||
}
|
||||
|
||||
this->indexNextArticle(url,
|
||||
accentedTitle,
|
||||
removeAccents(this->htmlParser.title),
|
||||
|
|
Loading…
Reference in New Issue