mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Allow to refresh RSS item(s) via WebAPI
This commit is contained in:
parent
2d28f50acd
commit
e649559650
2 changed files with 11 additions and 0 deletions
|
@ -91,6 +91,16 @@ void RSSController::itemsAction()
|
|||
setResult(jsonVal.toObject());
|
||||
}
|
||||
|
||||
void RSSController::refreshItemAction()
|
||||
{
|
||||
checkParams({"itemPath"});
|
||||
|
||||
const QString itemPath {params()["itemPath"]};
|
||||
RSS::Item *item = RSS::Session::instance()->itemByPath(itemPath);
|
||||
if (item)
|
||||
item->refresh();
|
||||
}
|
||||
|
||||
void RSSController::setRuleAction()
|
||||
{
|
||||
checkParams({"ruleName", "ruleDef"});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue