mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Merge pull request #9229 from Piccirello/forceReannounce
Add WebUI Force Reannounce option
This commit is contained in:
@@ -795,6 +795,14 @@ void TorrentsController::recheckAction()
|
||||
applyToTorrents(hashes, [](BitTorrent::TorrentHandle *torrent) { torrent->forceRecheck(); });
|
||||
}
|
||||
|
||||
void TorrentsController::reannounceAction()
|
||||
{
|
||||
checkParams({"hashes"});
|
||||
|
||||
const QStringList hashes {params()["hashes"].split('|')};
|
||||
applyToTorrents(hashes, [](BitTorrent::TorrentHandle *torrent) { torrent->forceReannounce(); });
|
||||
}
|
||||
|
||||
void TorrentsController::setCategoryAction()
|
||||
{
|
||||
checkParams({"hashes", "category"});
|
||||
|
||||
@@ -49,6 +49,7 @@ private slots:
|
||||
void resumeAction();
|
||||
void pauseAction();
|
||||
void recheckAction();
|
||||
void reannounceAction();
|
||||
void renameAction();
|
||||
void setCategoryAction();
|
||||
void createCategoryAction();
|
||||
|
||||
Reference in New Issue
Block a user