mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 13:11:25 -07:00
Merge pull request #11067 from glassez/rss-api
Allow to refresh RSS item(s) via WebAPI
This commit is contained in:
commit
e98f44af63
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"});
|
||||
|
|
|
@ -44,6 +44,7 @@ private slots:
|
|||
void removeItemAction();
|
||||
void moveItemAction();
|
||||
void itemsAction();
|
||||
void refreshItemAction();
|
||||
void setRuleAction();
|
||||
void renameRuleAction();
|
||||
void removeRuleAction();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue