mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07:00
Rss code clean up
This commit is contained in:
parent
87174ef3a4
commit
74c32a0ecd
6 changed files with 18 additions and 14 deletions
|
@ -129,9 +129,12 @@ void RssDownloadRule::setSavePath(const QString &save_path)
|
|||
QStringList RssDownloadRule::findMatchingArticles(const RssFeed *feed) const
|
||||
{
|
||||
QStringList ret;
|
||||
foreach(const RssArticle &art, feed->articleList()) {
|
||||
if(matches(art.title()))
|
||||
ret << art.title();
|
||||
const QHash<QString, RssArticle>& feed_articles = feed->articleListNoCopy();
|
||||
QHash<QString, RssArticle>::const_iterator artIt;
|
||||
for(artIt = feed_articles.begin(); artIt != feed_articles.end(); artIt++) {
|
||||
const QString title = artIt.value().title();
|
||||
if(matches(title))
|
||||
ret << title;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue