I am trying to move a torrent after completion to a subdirectory based on the label given in ruTorrent.
I set the downloads to "~/rtorrent/data" and label them say "music" or "tv". Then when the download completes, I want the torrent to be moved the appropriate sub-folder. So far I have tried in my .rtorrent.rc:
Code:
system.method.set_key =event.download.finished,move_complete,"d.set_directory=$cat=/rtorrent/data/\,$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$cat=/rtorrent/data/\,$d.get_custom1= "
If I take the $cat= out and try it , the completed torrent tries to move to /label/torrentname":
Code:
system.method.set_key =event.download.finished,move_complete,"d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom1= "
Is $get_custom1 set by the label after adding the torrent? I know I can set watch folders and have things move based on that, but then I cannot add torrents via the ruTorrent interface manually without problems because then custom_1 is not set.
Thanks!
I set the downloads to "~/rtorrent/data" and label them say "music" or "tv". Then when the download completes, I want the torrent to be moved the appropriate sub-folder. So far I have tried in my .rtorrent.rc:
Code:
system.method.set_key =event.download.finished,move_complete,"d.set_directory=$cat=/rtorrent/data/\,$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$cat=/rtorrent/data/\,$d.get_custom1= "
If I take the $cat= out and try it , the completed torrent tries to move to /label/torrentname":
Code:
system.method.set_key =event.download.finished,move_complete,"d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom1= "
Is $get_custom1 set by the label after adding the torrent? I know I can set watch folders and have things move based on that, but then I cannot add torrents via the ruTorrent interface manually without problems because then custom_1 is not set.
Thanks!