mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 10:22:44 +00:00
feature: allow multi-torrent priority change
This commit is contained in:
@@ -238,15 +238,6 @@ class ClientRequest {
|
||||
});
|
||||
}
|
||||
|
||||
setPriority(options) {
|
||||
const hashes = getEnsuredArray(options.hashes);
|
||||
|
||||
hashes.forEach((hash) => {
|
||||
this.requests.push(getMethodCall('d.priority.set', [hash, options.priority]));
|
||||
this.requests.push(getMethodCall('d.update_priorities', [hash]));
|
||||
});
|
||||
}
|
||||
|
||||
setSettings(options) {
|
||||
const settings = getEnsuredArray(options.settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user