PtokaX forum

Development Section => HOW-TO's => Topic started by: Kanubach on 14 January, 2009, 14:24:33

Title: How to automatically download a magnet link ?
Post by: Kanubach on 14 January, 2009, 14:24:33
Hi.

On my hub, I have a lua bot that collects stuffs posted by users. All the stuffs are logged within a file on the server by the bot, when it receives the new stuff command. Each stuff-record have many fields (file name, date, magnet link, etc.). The bot provides commands that display stuffs history, with magnet link for each stuff. Every user may click on the magnet on their client to launch the download of the corresponding file.
There are a lot of bots worldaround that do the same things.

My question is : is there a way, when a new stuff is trapped by the bot, to send to a (predefined list of) client a command that simulates a mouse-click on the corresponding magnet, ie that requests to the client the downloading of the file corresponding to the magnet ? All the clients are not concerned, only ones that have subscripted to this functionnality. This function would permit to concerned users to get all posted stuff, even if there are not working on their computer (during office time, night, etc.).

I'm currently working with PtokaX 0.3.6.0 / Lua 5.1.2
The must frequently client used is ApexDC++.

Many thanks.
Title: Re: How to automatically download a magnet link ?
Post by: HyperT3nsion on 14 January, 2009, 14:39:23
Nice...
but Ptokax 0.4.4.1 is out now...
try downloading that
most of the scripts are being made for that

Title: Re: How to automatically download a magnet link ?
Post by: Kanubach on 14 January, 2009, 18:37:42
Thank's. I will try the last version.
Title: Re: How to automatically download a magnet link ?
Post by: Madman on 14 January, 2009, 21:17:45
It is not posible to do that. If it where, hubowners could force users to download stuff.
And that would defently be abused

Only user can click the magnet link.

*Edit*

How ever, you still upgrade.
It's not like you drive a horse and wagon on the highway?
Title: Re: How to automatically download a magnet link ?
Post by: CrazyGuy on 10 February, 2009, 08:57:35
I don't like your attitude!

Describe your concerns instead so they can be looked at