mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
+ if no title is found in the HTML, get the one of the ZIM file
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user