mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
RSS: Save items to disk regularly for safety
This commit is contained in:
parent
8219c29b0c
commit
c9c481fe69
2 changed files with 7 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
|||
- BUGFIX: Add tray menu entry for toggling window visibility
|
||||
- BUGFIX: Fix execution log lines selection and copying
|
||||
- BUGFIX: Reduce CPU usage when running Web UI
|
||||
- BUGFIX: Save RSS items to disk regularly for safety
|
||||
- COSMETIC: Display speed at the beginning of the Window title
|
||||
- COSMETIC: Several cosmetic fixes to the Web UI
|
||||
- OTHER: Display libraries versions in about dialog (sledgehammer999)
|
||||
|
|
|
@ -287,6 +287,9 @@ bool RssFeed::parseRSS(QIODevice* device) {
|
|||
// Make sure we limit the number of articles
|
||||
resizeList();
|
||||
|
||||
// Save items to disk (for safety)
|
||||
saveItemsToDisk();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -304,11 +307,11 @@ void RssFeed::downloadMatchingArticleTorrents() {
|
|||
// Check if the item should be automatically downloaded
|
||||
const RssDownloadRule matching_rule = RssDownloadRuleList::instance()->findMatchingRule(m_url, item.title());
|
||||
if(matching_rule.isValid()) {
|
||||
// Item was downloaded, consider it as Read
|
||||
item.markAsRead();
|
||||
// Download the torrent
|
||||
QBtSession::instance()->addConsoleMessage(tr("Automatically downloading %1 torrent from %2 RSS feed...").arg(item.title()).arg(displayName()));
|
||||
QBtSession::instance()->downloadUrlAndSkipDialog(torrent_url, matching_rule.savePath(), matching_rule.label());
|
||||
// Item was downloaded, consider it as Read
|
||||
item.markAsRead();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue