Rtorrent: Command "system.method.insert" does not exist. / Command "system.method.set_key" does not exist.

Created on 9 May 2015  路  4Comments  路  Source: rakshasa/rtorrent

this worked in 0.9.2 guessing syntex changed
alll i want to do i move compleated downloads to /media/torrent/Compleated/LABEL
i found somewhere d.set_directory needs to be changed to d.directory.set
Command "system.method.insert" does not exist.
in rc file system.method.insert = d.get_finished_dir,simple,"cat=/media/torrent/Completed/,$d.get_custom1="

Command "system.method.set_key" does not exist.
in rc file system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_finished_dir=;execute=mkdir,-p,$d.get_finished_dir=;execute=mv,-u,$d.get_base_path=,$d.get_finished_dir="

any help would be great

All 4 comments

Just grep src/command_*.cc for the key words and you'll find the new ones. Also in src/main.cc you'll find redirects from the old commands to the new ones that can be enabled, so just use those to find the new command names.

The following seem to work in 0.9.4:

method.set_key = event.download.finished,move_complete,"d.directory.set=./done/;execute=mv,-u,$d.base_path=,./done/"

Note that the destination directory is here hardcoded to ./done/ (get_finished_dir is not used like above).

How do I make d.get_finished_dir works again? Can't find any similar command in source code.
It really sad when you expect all configs works forever, and new update breaks everything.

That's a custom command that you would have had defined in your rtorrent.rc, e.g. as seen here. Merely upgrading versions would not have broken that, unless you were using methods that have been deprecated since many versions ago. See this script for updating commands if that's the case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

nikil picture nikil  路  5Comments

iamfreaky picture iamfreaky  路  6Comments

legrostdg picture legrostdg  路  5Comments

dirtycajunrice picture dirtycajunrice  路  6Comments