diff --git a/deluge/plugins/execute/execute/core.py b/deluge/plugins/execute/execute/core.py index 31ae67467..842a29f4a 100644 --- a/deluge/plugins/execute/execute/core.py +++ b/deluge/plugins/execute/execute/core.py @@ -142,7 +142,7 @@ class Core(CorePluginBase): command = os.path.expanduser(command) cmd_args = [torrent_id, torrent_name, save_path] - if windows_check: + if windows_check(): # Escape ampersand on windows (see #2784) cmd_args = [arg.replace("&", "^^^&") for arg in cmd_args]