79
79
def execute_commands(self, torrent_id, event):
80
80
torrent = component.get("TorrentManager").torrents[torrent_id]
82
84
torrent_name = info["name"]
84
89
for command in self.config["commands"]:
85
90
if command[EXECUTE_EVENT] == event:
86
91
command = os.path.expandvars(command[EXECUTE_COMMAND])