Add force recheck command for qBittorrent
@ -364,7 +364,7 @@ public enum Daemon {
}
public static boolean supportsForceRecheck(Daemon type) {
return type == uTorrent || type == BitTorrent || type == Deluge || type == rTorrent || type == Transmission || type == Dummy;
return type == uTorrent || type == BitTorrent || type == Deluge || type == rTorrent || type == Transmission || type == Dummy || type == qBittorrent;
public static boolean supportsExtraPassword(Daemon type) {
@ -298,6 +298,11 @@ public class QbittorrentAdapter implements IDaemonAdapter {
return new DaemonTaskSuccessResult(task);
case ForceRecheck:
// Force recheck a torrent
makeRequest(log, "/command/recheck", new BasicNameValuePair("hash", task.getTargetTorrent().getUniqueID()));
case SetTransferRates:
// TODO: This doesn't seem to work yet