Add setting to ignore RSS rule matches for X days

This commit is contained in:
Nick Tiskov
2013-07-25 00:39:05 +04:00
parent 060d3fc5b9
commit 806a4a2e6a
6 changed files with 99 additions and 3 deletions

View File

@@ -148,6 +148,8 @@ RssDownloadRulePtr RssDownloadRule::fromVariantHash(const QVariantHash &rule_has
rule->setEnabled(rule_hash.value("enabled", false).toBool());
rule->setSavePath(rule_hash.value("save_path").toString());
rule->setLabel(rule_hash.value("label_assigned").toString());
rule->setLastMatch(rule_hash.value("last_match").toDateTime());
rule->setIgnoreDays(rule_hash.value("ignore_days").toInt());
return rule;
}
@@ -163,6 +165,8 @@ QVariantHash RssDownloadRule::toVariantHash() const
hash["label_assigned"] = m_label;
hash["use_regex"] = m_useRegex;
hash["episode_filter"] = m_episodeFilter;
hash["last_match"] = m_lastMatch;
hash["ignore_days"] = m_ignoreDays;
return hash;
}