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

Örjan Nordlund orjan at laxfiske.se
Wed Oct 28 09:49:06 UTC 2009


If you ever get this to work i am very interested too ;)
I categorize my downloads into categories (less than 5) and one of  
those is tvshows. My mediacenter (plexapp.com) wants tvshows in a  
specific folder structure tvshows/showname/season/name_episode.avi,  
for the last part i rely on a script to create symlinks from my  
tvshows directory into a virtual directory structure according to  
Plex's needs. Sadly, this script is client only (developed for mac  
osx). I would love an option to have something like a python script  
running on the server (maybe fired up by rtorrent) that would have  
done the same thing. If i hade the last peace of the puzzle everything  
would be managed by my linux box without human intervention.

kr
Örjan Nordlund




28 okt 2009 kl. 07.56 skrev Dominik Psenner:

> *hmm*
>
> I understand your problem, but as I tried something like this some
> week before I couldn't get it working either. My drawback was/is the
> slow debian release cycle. So it stood to reason for me, that the
> current stable version of rtorrent lacks of some vital functionality
> to get this working.
>
> I would have had to build and install rtorrent by myself which would
> force me to handle updates/fixes/... manually. At this point I just
> decided for me that I don't need this functionality that much either.
> :-)
>
> 2009/10/28 Paul Belanger <pabelanger at gmail.com>:
>> 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?
>>>>>
>>>>
>>>
>> _______________________________________________
>> Libtorrent-devel mailing list
>> Libtorrent-devel at rakshasa.no
>> http://rakshasa.no/mailman/listinfo/libtorrent-devel
>>
>
>
>
> -- 
> Dominik Psenner
> ## OpenPGP Key Signature #################################
> # Key ID: B469318C                                       #
> # Fingerprint: 558641995F7EC2D251354C3A49C7E3D1B469318C  #
> ##########################################################
> _______________________________________________
> Libtorrent-devel mailing list
> Libtorrent-devel at rakshasa.no
> http://rakshasa.no/mailman/listinfo/libtorrent-devel



More information about the Libtorrent-devel mailing list