|
| 1 | +From 5b1e02d103fe3fd991d885c44e85d9c3c339f14b Mon Sep 17 00:00:00 2001 |
| 2 | +From: simonc56 <simchat@gmail.com> |
| 3 | +Date: Sun, 9 Nov 2025 21:19:01 +0100 |
| 4 | +Subject: [PATCH] alias more rtorrent deprecated commands |
| 5 | + |
| 6 | +--- |
| 7 | + js/content.js | 10 ++++++++++ |
| 8 | + php/methods-0.10.2.php | 10 ++++++++++ |
| 9 | + 2 files changed, 20 insertions(+) |
| 10 | + |
| 11 | +diff --git a/js/content.js b/js/content.js |
| 12 | +index 98a2f8e9..5d5304a9 100644 |
| 13 | +--- a/js/content.js |
| 14 | ++++ b/js/content.js |
| 15 | +@@ -860,6 +860,16 @@ function correctContent() |
| 16 | + "throttle.max_uploads.global" : { name: "throttle.max_uploads.global._val", prm: 1 }, |
| 17 | + "throttle.max_downloads.div" : { name: "throttle.max_downloads.div._val", prm: 1 }, |
| 18 | + "throttle.max_downloads.global" : { name: "throttle.max_downloads.global._val", prm: 1 }, |
| 19 | ++ "ratio.enable" : { name: "group.seeding.ratio.enable", prm: 1 }, |
| 20 | ++ "ratio.disable" : { name: "group.seeding.ratio.disable", prm: 1 }, |
| 21 | ++ "ratio.min" : { name: "group2.seeding.ratio.min", prm: 0 }, |
| 22 | ++ "ratio.max" : { name: "group2.seeding.ratio.max", prm: 0 }, |
| 23 | ++ "ratio.upload" : { name: "group2.seeding.ratio.upload", prm: 0 }, |
| 24 | ++ "ratio.min.set" : { name: "group2.seeding.ratio.min.set", prm: 1 }, |
| 25 | ++ "ratio.max.set" : { name: "group2.seeding.ratio.max.set", prm: 1 }, |
| 26 | ++ "ratio.upload.set" : { name: "group2.seeding.ratio.upload.set", prm: 1 }, |
| 27 | ++ "connection_leech" : { name: "protocol.connection.leech.set", prm: 1 }, |
| 28 | ++ "connection_seed" : { name: "protocol.connection.seed.set", prm: 1 }, |
| 29 | + }); |
| 30 | + } |
| 31 | + if(theWebUI.systemInfo.rTorrent.iVersion < 0x907) { |
| 32 | +diff --git a/php/methods-0.10.2.php b/php/methods-0.10.2.php |
| 33 | +index c1031cb3..6c6148a0 100644 |
| 34 | +--- a/php/methods-0.10.2.php |
| 35 | ++++ b/php/methods-0.10.2.php |
| 36 | +@@ -6,4 +6,14 @@ $this->aliases = array_merge($this->aliases,array( |
| 37 | + "throttle.max_uploads.global" => array( "name"=>"throttle.max_uploads.global._val", "prm"=>1 ), |
| 38 | + "throttle.max_downloads.div" => array( "name"=>"throttle.max_downloads.div._val", "prm"=>1 ), |
| 39 | + "throttle.max_downloads.global" => array( "name"=>"throttle.max_downloads.global._val", "prm"=>1 ), |
| 40 | ++"ratio.enable" => array( "name"=>"group.seeding.ratio.enable", "prm"=>1 ), |
| 41 | ++"ratio.disable" => array( "name"=>"group.seeding.ratio.disable", "prm"=>1 ), |
| 42 | ++"ratio.min" => array( "name"=>"group2.seeding.ratio.min", "prm"=>0 ), |
| 43 | ++"ratio.max" => array( "name"=>"group2.seeding.ratio.max", "prm"=>0 ), |
| 44 | ++"ratio.upload" => array( "name"=>"group2.seeding.ratio.upload", "prm"=>0 ), |
| 45 | ++"ratio.min.set" => array( "name"=>"group2.seeding.ratio.min.set", "prm"=>1 ), |
| 46 | ++"ratio.max.set" => array( "name"=>"group2.seeding.ratio.max.set", "prm"=>1 ), |
| 47 | ++"ratio.upload.set" => array( "name"=>"group2.seeding.ratio.upload.set", "prm"=>1 ), |
| 48 | ++"connection_leech" => array( "name"=>"protocol.connection.leech.set", "prm"=>1 ), |
| 49 | ++"connection_seed" => array( "name"=>"protocol.connection.seed.set", "prm"=>1 ), |
| 50 | + )); |
| 51 | +-- |
| 52 | +2.46.0.windows.1 |
| 53 | + |
0 commit comments