Ticket #242 (new enhancement)

Opened 2 months ago

Last modified 2 months ago

add torrent without set_directory

Reported by: lldmer Assigned to: royger
Priority: minor Component: wTorrent
Version: HEAD Keywords:
Cc:

Description

I have rtorrent watching a folder tree for new .torrent files. Depending on where in the tree the .torrent file is found, rtorrent moves it to a different destination after downloading.

I've been trying to make wtorrent not do a set_directory, instead leaving me a choice in what folder of my tree i want to save the torrent. That way rtorrent can decide where to download/move stuff, cause it's very nicely configured to do that.

However, I can't seem it get to work. For some reason wtorrent keeps calling a set_directory to data/ (I'm also not a programmer btw). Any tips on how to change this behavior? Or are other people interested as well?

Attachments

Change History

19/11/08 23:05:00 changed by fordecoy@freemail.hu

Hi, Same problem here, I'm using a similar setup, my rtorrent.rc contains the following:

directory = /home/****/torrent/download

schedule = watch_directory_1,10,10,"load_start=~/torrent/torrents/*.torrent,d.set_custom1=~/torrent/finished/,d.set_custom2=~/torrent/finished/__Deleted/"
schedule = watch_directory_2,10,10,"load_start=~/torrent/torrents/seed/*.torrent,d.set_directory=~/torrent/finished_seed/,d.set_custom1=$d.get_directory,d.set_custom2=~/torrent/finished_seed/__Deleted/"

system.method.set_key = event.download.finished,move_complete,"execute=mv,-u,$d.get_base_path=,$d.get_custom1=;d.set_directory=$d.get_custom1= "
system.method.set_key = event.download.erased,move_complete,"d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom2="

If I add the torrent with the web interface with the correct download dir, and the correct torrent watch dir (set in usr.conf.php) the download is starts without the custom1 and custom2 variables set, so my move command will fail with an error. The usr.conf.php:

<?php
/* wTorrent autoconfiguration file. Created 2/11/2008 */
define ('LANGUAGE', 'hu_HU');
define ('DB_FILE', 'db/database.db');
define ('RT_HOST', 'localhost');
define ('RT_PORT', 80);
define ('RT_DIR', '/RPC2');
define ('RT_AUTH', true);
define ('RT_USER', '******');
define ('RT_PASSWD', '********');
define ('NO_MULTICALL', true);
define ('EFFECTS', true);
define ('DIR_TORRENTS', '/home/*****/torrent/torrents/seed/');
define ('DIR_EXEC', '/var/www/wtorrent/');
define ('DIR_DOWNLOAD', '/home/*****/torrent/finished_seed/');
?>

The mv command is working fine, if I add the torrent manually (if I copy it to the watchdir directly).

Maybe you can add a checkbox into the add torrent section: "Just copy into the selected wachdir".

dib


Add/Change #242 (add torrent without set_directory)