mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
BUGFIX: More reliable RSS feed parsing (closes #1001777)
This commit is contained in:
parent
595a190508
commit
0bbe4426c2
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.9.9
|
||||
- BUGFIX: More reliable RSS feed parsing (closes #1001777)
|
||||
|
||||
* Sat May 5 2012 - Christophe Dumez <chris@qbittorrent.org> - v2.9.8
|
||||
- BUGFIX: Various UI style fixes
|
||||
- BUGFIX: Fix compilation with gcc 4.7
|
||||
|
|
|
@ -229,6 +229,13 @@ RssArticle::RssArticle(RssFeed* parent, QXmlStreamReader& xml)
|
|||
}
|
||||
}
|
||||
}
|
||||
// If guid is empty, fall back to some other identifier
|
||||
if (d->guid.isEmpty()) {
|
||||
if (!d->link.isEmpty())
|
||||
d->guid = d->link;
|
||||
else if (!d->title.isEmpty())
|
||||
d->guid = d->title;
|
||||
}
|
||||
}
|
||||
|
||||
RssArticle::RssArticle(RssFeed* parent, const QString &guid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue