1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

RSS code clean up

This commit is contained in:
Christophe Dumez 2012-05-20 15:09:31 +03:00
parent 600c33dfa3
commit 716e84264e

View File

@ -230,11 +230,8 @@ RssArticlePtr xmlToRssArticle(RssFeed* parent, QXmlStreamReader& xml)
if (xml.attributes().value("type") == "application/x-bittorrent") if (xml.attributes().value("type") == "application/x-bittorrent")
torrentUrl = xml.attributes().value("url").toString(); torrentUrl = xml.attributes().value("url").toString();
} }
else if (xml.name() == "link") { else if (xml.name() == "link")
link = xml.readElementText(); link = xml.readElementText();
if (guid.isEmpty())
guid = link;
}
else if (xml.name() == "description") else if (xml.name() == "description")
description = xml.readElementText(); description = xml.readElementText();
else if (xml.name() == "pubDate") else if (xml.name() == "pubDate")