about rss : new streams are aliased by their title

This commit is contained in:
Arnaud Demaiziere 2007-04-06 12:57:41 +00:00
parent 59c6f469a0
commit 2a9d2a4910

View file

@ -241,8 +241,11 @@ class RssStream : public QObject{
if (channel.tagName() == "channel") { if (channel.tagName() == "channel") {
QDomElement property = channel.firstChild().toElement(); QDomElement property = channel.firstChild().toElement();
while(!property.isNull()) { while(!property.isNull()) {
if (property.tagName() == "title") if (property.tagName() == "title") {
title = property.text(); title = property.text();
if(alias==getUrl())
setAlias(title);
}
else if (property.tagName() == "link") else if (property.tagName() == "link")
link = property.text(); link = property.text();
else if (property.tagName() == "description") else if (property.tagName() == "description")