rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.08k stars 408 forks source link

Move completed torrents rtorrent 0.9.8 #1023

Closed alebupal closed 4 years ago

alebupal commented 4 years ago

Hello, I have version 0.9.6 of rutorrent and to move the finished downloads I have this:

schedule = watch_directory_99,5,5,"load_start=/downloads/watch/*.torrent,\"d.directory.set=/downloads/downloading/\",\"d.set_custom=auto,/downloads/completed/\""

system.method.set_key = event.download.finished,move_complete,"branch={$movecheck=,movedir=}"
system.method.insert=movecheck,simple,"and={d.get_complete=,d.get_custom=auto}"
system.method.insert=movedir,simple,"d.set_directory=$d.get_custom=auto;execute=mv,-f,$d.get_base_path=,$d.get_custom=auto"

Today I am testing version 0.9.8 and this does not work, I have tried different ways and I cannot fix it.

Any solution?

alebupal commented 4 years ago

Solved! I have changed the commands for the new ones looking at the following https://github.com/rakshasa/rtorrent/wiki/rTorrent-0.9-Comprehensive-Command-list-(WIP)#tracker

schedule = watch_directory_99,5,5,"load.start=/download/watch/*.torrent,\"d.directory.set=/home/download/downloading/\",\"d.custom.set=auto,/download/completed/\""

method.set_key = event.download.finished, move_complete,"branch={$movecheck=,movedir=}"
method.insert=movecheck,simple,"and={d.complete=,d.custom=auto}"
method.insert=movedir,simple,"d.directory.set=$d.custom=auto;execute2=mv,-f,$d.base_path=,$d.custom=auto"