[Libtorrent-devel] loading torrents watch_directory that has subdirectories

Paul Belanger pabelanger at gmail.com
Sat Oct 24 16:45:17 UTC 2009


Lets hope this makes sense.

I have the following settings in my .rtorrent.rc file:

schedule = watch_directory_1,10,10,"load_start=/home/pabelanger/torrents/rss/NCIS/*.torrent,d.set_custom1=/home/pabelanger/torrents/completed/NCIS"
schedule = watch_directory_2,10,10,"load_start=/home/pabelanger/torrents/rss/Mythbusters/*.torrent,d.set_custom1=/home/pabelanger/torrents/completed/My
thbusters"
schedule = watch_directory_3,10,10,"load_start=/home/pabelanger/torrents/rss/The.Ultimate.Fighter/*.torrent,d.set_custom1=/home/pabelanger/torrents/com
pleted/The.Ultimate.Fighter"

# Move files to seeding once they've downloaded
system.method.set_key = event.download.finished,
move_complete,"d.set_directory=$d.get_custom1=
;execute=mv,-n,$d.get_base_path=,$d.get_custom1="

# Once ratio is hit, move to completed
system.method.set = group.seeding.ratio.command, d.close=, d.erase=

And it works great.  As you can see by the config, I have a directory
structure setup as:

torrents
- > completed
- - > NCIS
- - > Mythbusters
- - > The.Ultimate.Fighter
- > rss
- - > NCIS
- - > Mythbusters
- - > The.Ultimate.Fighter

One issue I have, is every time I add a new folder under completed and
rss, I have to modify my .rctorrent to include a new watch directory.
I was curious if there was away that rtorrent maintains the directory
structure when adding / moving torrents. For example:

schedule = watch_directory,10,10,"load_start=/home/pabelanger/torrents/rss/*/*.torrent,d.set_custom1=/home/pabelanger/torrents/completed/"

# Move files to seeding once they've downloaded
system.method.set_key = event.download.finished,
move_complete,"d.set_directory=$d.get_custom1=
;execute=mv,-n,$d.get_base_path=,$d.get_custom1="

# Once ratio is hit, move to completed
system.method.set = group.seeding.ratio.command, d.close=, d.erase=

Makes sense?


More information about the Libtorrent-devel mailing list