diff --git a/deluge/plugins/Execute/deluge/plugins/execute/core.py b/deluge/plugins/Execute/deluge/plugins/execute/core.py index c7824e5f0..9dcd97aaa 100644 --- a/deluge/plugins/Execute/deluge/plugins/execute/core.py +++ b/deluge/plugins/Execute/deluge/plugins/execute/core.py @@ -154,7 +154,7 @@ class Core(CorePluginBase): # Exported RPC methods # @export def add_command(self, event, command): - command_id = hashlib.sha1(str(time.time())).hexdigest() + command_id = hashlib.sha1(str(time.time()).encode()).hexdigest() self.config['commands'].append((command_id, event, command)) self.config.save() component.get('EventManager').emit( diff --git a/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui b/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui index fc02a54a8..e2a5cd507 100644 --- a/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui +++ b/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui @@ -30,6 +30,7 @@ False 5 12 + 10 True @@ -85,6 +86,7 @@ True False + start liststore1 @@ -103,6 +105,7 @@ True False + center end @@ -164,6 +167,7 @@ True False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + start vertical