From ddea07873497f7eb29ac2241a7115eeb8150e55d Mon Sep 17 00:00:00 2001 From: kelson42 Date: Tue, 15 Feb 2011 16:43:48 +0000 Subject: [PATCH] + if no title is found in the HTML, get the one of the ZIM file --- src/common/kiwix/indexer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/kiwix/indexer.cpp b/src/common/kiwix/indexer.cpp index 1f50d93f2..0ada01759 100644 --- a/src/common/kiwix/indexer.cpp +++ b/src/common/kiwix/indexer.cpp @@ -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),