mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix a bug in the execute plugin when move_completed is used the incorrect path was passed in
This commit is contained in:
parent
f5096c6e7c
commit
36b2a82561
2 changed files with 10 additions and 2 deletions
|
@ -13,6 +13,9 @@
|
||||||
==== Label ====
|
==== Label ====
|
||||||
* Fix #1085 only use ints for specific options to prevent unhandled exception
|
* Fix #1085 only use ints for specific options to prevent unhandled exception
|
||||||
|
|
||||||
|
==== Execute ====
|
||||||
|
* Use the move_completed path if it is different to the save path in the completed event.
|
||||||
|
|
||||||
=== Deluge 1.2.0_rc4 (24 November 2009) ===
|
=== Deluge 1.2.0_rc4 (24 November 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
* Fix deleting old .fastresume files with fresh configs
|
* Fix deleting old .fastresume files with fresh configs
|
||||||
|
|
|
@ -78,9 +78,14 @@ 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"])
|
info = torrent.get_status(["name", "save_path",
|
||||||
|
"move_on_completed_path"])
|
||||||
|
|
||||||
torrent_name = info["name"]
|
torrent_name = info["name"]
|
||||||
path = info["save_path"]
|
path = info["save_path"] if \
|
||||||
|
info["move_on_completed_path"] == info["save_path"] else \
|
||||||
|
info["move_on_completed_path"]
|
||||||
|
|
||||||
for command in self.config["commands"]:
|
for command in self.config["commands"]:
|
||||||
if command[EXECUTE_EVENT] == event:
|
if command[EXECUTE_EVENT] == event:
|
||||||
command = os.path.expandvars(command[EXECUTE_COMMAND])
|
command = os.path.expandvars(command[EXECUTE_COMMAND])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue