Some fixes to author detemrination in atom feeds.

This commit is contained in:
Martin Rotter 2017-07-26 11:16:18 +02:00
parent b6b10919fc
commit 28fe0aee64
2 changed files with 78 additions and 69 deletions

View file

@ -2,7 +2,12 @@
—————
Added:
▪ Some minor tweaks/fixes.
▪ New Ad-Block feature for internal web browser. Based on Qt examples and QupZilla. Original license GNU GPLv3 is retained. (#123)
▪ New Qt 5.9.1 release.
▪ New SSL libraries.
▪ Binaries are now compiled on x64-only mode for Windows!!!
3.4.1
—————

View file

@ -37,7 +37,11 @@ QString AtomParser::feedAuthor() const {
QDomNodeList names = authors.at(i).toElement().elementsByTagNameNS(m_atomNamespace, QSL("name"));
if (!names.isEmpty()) {
author_str.append(names.at(0).toElement().text());
const QString name = names.at(0).toElement().text();
if (!name.isEmpty() && !author_str.contains(name)) {
author_str.append(name);
}
}
}