mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
RSS code clean up
This commit is contained in:
parent
600c33dfa3
commit
716e84264e
1 changed files with 1 additions and 4 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue