Merge pull request #9229 from Piccirello/forceReannounce

Add WebUI Force Reannounce option
This commit is contained in:
Mike Tzou
2018-07-31 00:19:34 +08:00
committed by GitHub
5 changed files with 34 additions and 9 deletions

View File

@@ -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"});