mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Allow to refresh RSS item(s) via WebAPI
This commit is contained in:
parent
2d28f50acd
commit
e649559650
@ -91,6 +91,16 @@ void RSSController::itemsAction()
|
|||||||
setResult(jsonVal.toObject());
|
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()
|
void RSSController::setRuleAction()
|
||||||
{
|
{
|
||||||
checkParams({"ruleName", "ruleDef"});
|
checkParams({"ruleName", "ruleDef"});
|
||||||
|
@ -44,6 +44,7 @@ private slots:
|
|||||||
void removeItemAction();
|
void removeItemAction();
|
||||||
void moveItemAction();
|
void moveItemAction();
|
||||||
void itemsAction();
|
void itemsAction();
|
||||||
|
void refreshItemAction();
|
||||||
void setRuleAction();
|
void setRuleAction();
|
||||||
void renameRuleAction();
|
void renameRuleAction();
|
||||||
void removeRuleAction();
|
void removeRuleAction();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user