Closed neo-neo1 closed 2 years ago
Not 100% on this, but to call 2 scripts:
method.set_key = event.download.finished,move_complete,"d.move_to_complete=$d.data_path=,$d.get_finished_dir=; execute=/usr/local/bin/python2,/path/to/TorrentToMedia.py,$d.get_finished_dir=,$d.name=,$d.custom1=,$d.hash="
method.set_key = event.download.finished,move_complete,"d.move_to_complete=$d.data_path=,$d.get_finished_dir=; execute=/usr/local/bin/python2,/path/to/TorrentToMedia.py,$d.get_finished_dir=,$d.name=,$d.custom1=,$d.hash="
This works.
I also tried this, and it also works. Which is more technically correct, though? We may never know lol
method.set_key = event.download.finished,move_complete,"d.move_to_complete=$d.data_path=,$d.get_finished_dir=","execute=/usr/bin/python3,/data/nzbtomedia/TorrentToMedia.py,$d.get_finished_dir=,$d.name=,$d.custom1=,$d.hash="
Describe the bug For rTorrent to trigger nzbToMedia upon download completion I copied the command from your Wiki into rtorrent.rc. However, this command conflicts with rTorrent moving files upon completion (e.g. from
incomplete
tocomplete
directories). To be clear, nzbToMedia is still triggered but the finished download is never moved to compete folder.Command to trigger nzbToMedia:
Command for completed downloads to move folders
If I remove either command (from rtorrent.rc) the other works perfectly as expected.
I'm not the best at rTorrent's scripting language, unfortunately. I'm thinking I need to combine the nzbToMedia command to the completed folder move command. Question is, how?