Some fixes to author detemrination in atom feeds.
This commit is contained in:
parent
b6b10919fc
commit
28fe0aee64
2 changed files with 78 additions and 69 deletions
|
|
@ -2,7 +2,12 @@
|
||||||
—————
|
—————
|
||||||
|
|
||||||
Added:
|
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 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
|
3.4.1
|
||||||
—————
|
—————
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,11 @@ QString AtomParser::feedAuthor() const {
|
||||||
QDomNodeList names = authors.at(i).toElement().elementsByTagNameNS(m_atomNamespace, QSL("name"));
|
QDomNodeList names = authors.at(i).toElement().elementsByTagNameNS(m_atomNamespace, QSL("name"));
|
||||||
|
|
||||||
if (!names.isEmpty()) {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue