BUGFIX: More reliable RSS feed parsing (closes #1001777)

This commit is contained in:
Christophe Dumez 2012-05-20 14:10:46 +03:00
commit 0bbe4426c2
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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) {