Move torrent based on name (After completion)

somus1735

Member
May 25, 2018
833
0
16
Hello Rutorrent community!

I was wondering if its possible to make completed torrent move to a directory based on its name.

Usually torrents have the format: [NAME].[Aditional information].ext and i was wondering if its possible to move it to a directory which have the [NAME] value.

i hope i explained it good enough with my horrible english.

Thanks
Driiper
 

jith45

Member
May 25, 2018
960
0
16
You can do create a script that moves the media to the desired folder and then do two things:
1) Setup cron so it calls it from time to time.
2) Setup a view in rtorrent.rc and add a system.method.set to that rule so it runs the scripts once finished.

EDIT: Just browsing for rtorrent I've found you can do it directly from rtorrent.rc
Code:
# When the ratio is reached; move the files and delete the torrent
system.method.set = group.group_1.ratio.command, "d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom1=", d.close=, d.erase=