[Libtorrent-devel] Need help creating a event.download.finished script (0.8.6)
grant at emsley.ca
Tue Oct 26 18:19:44 UTC 2010
As promised, I've put the code up for my rutorrent plugin. You can
get it here: http://dl.dropbox.com/u/1209944/transfer.tar.gz
It works as a plugin for rutorrent, but some of the code (especially
runtransfer.php) can easily be reused for other projects.
In rutorrent, there are configuration settings to allow multiple users
(or destinations) with different transfer methods. It's supposed to
support FTP, Rsync, and SCP. I've only briefly tested FTP and SCP,
but I think they work. There are probably a bunch of php modules and
programs you need to install. I forget what they are.
Feel free to use this or parts of it for whatever you want. If
someone wants to clean it up and improve upon it, that would be great!
I just ask that you credit me in your work. I spent a long time
working on this.
On Thu, Oct 21, 2010 at 8:03 AM, Grant Emsley <grant at emsley.ca> wrote:
> It lets you transfer files through several different methods. I
> usually use scp or rsync. It also supported ftp, though I haven't
> tested it very thoroughly.
> Give me a couple days to package up the code. I'll try to post it this weekend.
> On Thu, Oct 21, 2010 at 5:44 AM, predecessor at gmail.com
> <predecessor at gmail.com> wrote:
>> Sounds interesting. Yes, please share your script.
>> How do you Transfer your files? ftp?
>> Am 20.10.2010 22:24, schrieb Grant Emsley:
>>> I learnt that running it directly from rtorrent can sometimes cause
>>> My solution for transfering files (I actually wrote a custom rutorrent
>>> plugin to manage it all) is to set a custom flag on the file with a 1
>>> if it is to be transferred.
>>> I have a php script that runs every 5 minutes which uses xmlrpc to
>>> check for torrents that have that flag set, and are completed, and
>>> transfer them. After the transfer successfully completes, it changes
>>> the flag to a 0. This allows transfers to be retried if they fails.
>>> In rutorrent, I have a plugin that adds some columns and right click
>>> commands to show and set the transfer status, including setting
>>> multiple locations to transfer it to. I even modified the rutorrent
>>> RSS plugin to let you select certain rss filters to mark for transfer.
>>> It works great.
>>> I can post the code if anyone wants it...could probably use some
>>> cleaning up, but I'm sure someone can at least use it as a base to
>>> start on.
More information about the Libtorrent-devel