Ticket #2128 (new defect)

Opened 23 months ago

rTorrent crashes when executing ratio command

Reported by: rostvertol.mil@gmail.com Owned by: rakshasa
Priority: normal Component: rtorrent
Version: Severity: normal
Keywords: Cc:

Description

I want to copy certain torrents to a new directory on finish, and delete the original file when the required ratio is reached. My rtorrent.rc reads like this:

# TVTAF Group
view_add = view_tvtaf
view.persistent = view_tvtaf
group.insert = tvtaf, view_tvtaf
group.tvtaf.ratio.enable=
group.tvtaf.ratio.min.set=001
group.tvtaf.ratio.max.set=001
group.tvtaf.ratio.upload.set=300M
schedule = watch_directory_tvtaf,5,10,"load_start_verbose=/torrentdir/*.torrent, view.set_visible=view_tvtaf, d.set_directory=/downloaddir/, d.set_custom2=1"
on_finished = copy_complete,"branch=d.get_custom2=,\"execute={cp,-u,$d.get_base_path=,/destdir/}\""
system.method.set = group.tvtaf.ratio.command, d.close=, d.erase= #, "branch=d.get_custom2=,\"execute={rm,-rf,--,$d.get_base_path=}\""

The file copy works well, but rtorrent crashes when the delete command is executed.

Note: See TracTickets for help on using tickets.