From 41eef969ead7088cb6429195d19efd809621a208 Mon Sep 17 00:00:00 2001 From: xirvik <31997142+xirvik@users.noreply.github.com> Date: Sat, 25 Jul 2026 06:14:24 +0000 Subject: [PATCH] commands: fix group..ratio.disable calling a removed command group_insert() builds the disable method as "schedule_remove=...", but that command no longer exists: the current name is schedule.remove, and the only old-style aliases registered are schedule2 and schedule_remove2 (and those only when deprecated commands are enabled at registration time). Every group..ratio.disable therefore faults with Command "schedule_remove" does not exist. including the built-in group.seeding.ratio.disable, so a ratio group can be enabled but never disabled. The enable half already uses the current name. --- src/command_local.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command_local.cc b/src/command_local.cc index 053d69ec..277b5a8c 100644 --- a/src/command_local.cc +++ b/src/command_local.cc @@ -117,7 +117,7 @@ group_insert(const torrent::Object::list_type& args) { rpc::commands.call("method.insert", rpc::create_object_list("group." + name + ".ratio.enable", "simple", "schedule=group." + name + ".ratio,5,60,on_ratio=" + name)); rpc::commands.call("method.insert", rpc::create_object_list("group." + name + ".ratio.disable", "simple", - "schedule_remove=group." + name + ".ratio")); + "schedule.remove=group." + name + ".ratio")); rpc::commands.call("method.insert", rpc::create_object_list("group." + name + ".ratio.command", "simple", "d.try_close= ;d.ignore_commands.set=1")); rpc::commands.call("method.insert", rpc::create_object_list("group." + name + ".view", "string", view));