mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
Fix an error in the key
This commit is contained in:
parent
88daf82cb0
commit
d69b8e1099
1 changed files with 2 additions and 2 deletions
|
@ -93,12 +93,12 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
def execute_commands(self, torrent_id, event):
|
def execute_commands(self, torrent_id, event):
|
||||||
torrent = component.get("TorrentManager").torrents[torrent_id]
|
torrent = component.get("TorrentManager").torrents[torrent_id]
|
||||||
info = torrent.get_status(["name", "save_path", "move_completed", "move_on_completed_path"])
|
info = torrent.get_status(["name", "save_path", "move_on_completed", "move_on_completed_path"])
|
||||||
|
|
||||||
# Grab the torrent name and save path
|
# Grab the torrent name and save path
|
||||||
torrent_name = info["name"]
|
torrent_name = info["name"]
|
||||||
if event == "complete":
|
if event == "complete":
|
||||||
save_path = info["move_on_completed_path"] if info ["move_completed"] else info["save_path"]
|
save_path = info["move_on_completed_path"] if info ["move_on_completed"] else info["save_path"]
|
||||||
else:
|
else:
|
||||||
save_path = info["save_path"]
|
save_path = info["save_path"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue