[Libtorrent-devel] Re: loading torrents watch_directory that has subdirectories

Paul Belanger pabelanger at gmail.com
Wed Oct 28 02:35:05 UTC 2009


I should have been a little more clear.

"The load_start seems to work (recursive directory structures), but
I'm having trouble getting the move
to work properly.  It is not maintaining the directory structure of the load."

The reason for this setup, it to have a complete automated system with
moves completed torrents to the proper sub folders, keeping each show
in there respective folder.

Otherwise:

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

with move all completed torrents to 1 directory where the manual
process of sorting shows into sub-directories begins.

On Tue, Oct 27, 2009 at 3:20 PM, Paul Belanger <pabelanger at gmail.com> wrote:
> How are other people doing this?  I am up to 19+ watch_directory
> entries in my .config file.  There must be a better way.
>
> PB
>
> On Sat, Oct 24, 2009 at 1:43 PM, Paul Belanger <pabelanger at gmail.com> wrote:
>> The load_start seems to work, but I'm having trouble getting the move
>> to work properly.  It is not maintaining the directory structure of
>> the load.
>>
>> On Sat, Oct 24, 2009 at 12:45 PM, Paul Belanger <pabelanger at gmail.com> wrote:
>>> 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