diff --git a/hate_crack/api.py b/hate_crack/api.py index c756fea..f40121b 100644 --- a/hate_crack/api.py +++ b/hate_crack/api.py @@ -277,7 +277,7 @@ class TransmissionSession: "-f", "-g", self._cfg_dir, - "--rpc-port", + "--port", str(self._port), "--rpc-bind-address", "127.0.0.1", diff --git a/tests/test_api_downloads.py b/tests/test_api_downloads.py index 9328f9c..ef27a5a 100644 --- a/tests/test_api_downloads.py +++ b/tests/test_api_downloads.py @@ -112,7 +112,7 @@ class TestTransmissionSession: args = popen.call_args[0][0] assert args[0] == "transmission-daemon" assert "-f" in args - assert "--rpc-port" in args + assert "--port" in args assert "12345" in args assert "--no-auth" in args assert "--download-dir" in args