+ if no title is found in the HTML, get the one of the ZIM file

This commit is contained in:
kelson42 2011-02-15 16:43:48 +00:00
parent e19e53e373
commit ddea078734
1 changed files with 5 additions and 0 deletions

View File

@ -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),