mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 20:28:05 -06:00
committed by
GitHub
parent
cecf2d28e6
commit
b8cd614775
@@ -66,6 +66,17 @@ void RSSController::addFeedAction()
|
||||
throw APIError(APIErrorType::Conflict, result.error());
|
||||
}
|
||||
|
||||
void RSSController::setFeedURLAction()
|
||||
{
|
||||
requireParams({u"path"_qs, u"url"_qs});
|
||||
|
||||
const QString path = params()[u"path"_qs].trimmed();
|
||||
const QString url = params()[u"url"_qs].trimmed();
|
||||
const nonstd::expected<void, QString> result = RSS::Session::instance()->setFeedURL(path, url);
|
||||
if (!result)
|
||||
throw APIError(APIErrorType::Conflict, result.error());
|
||||
}
|
||||
|
||||
void RSSController::removeItemAction()
|
||||
{
|
||||
requireParams({u"path"_qs});
|
||||
|
||||
@@ -41,6 +41,7 @@ public:
|
||||
private slots:
|
||||
void addFolderAction();
|
||||
void addFeedAction();
|
||||
void setFeedURLAction();
|
||||
void removeItemAction();
|
||||
void moveItemAction();
|
||||
void itemsAction();
|
||||
|
||||
Reference in New Issue
Block a user