I want my download manager to work with flashgot

Ask for help about FlashGot, no registration needed to post
Post Reply
SoleSoul

I want my download manager to work with flashgot

Post by SoleSoul »

Hi flashgot community.
I am working on a GUI download accelerator/manager for Linux which uses aria2c as a backend. Its name is DownloadM. It is still in its early stages but it already works and want it to be useful.
Were can I find guidelines for making DownloadM compatible with flashgot?
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: I want my download manager to work with flashgot

Post by Giorgio Maone »

Just provide as many as the following command line options as possible:
  1. URL (rather obvious), and/or URL1 [URL2 [URL3...]] (space-separated URL list as the trailing arguments) and/or UFILE (path to a file containing multiple URLs, one per line)
  2. COOKIE
  3. POST (form-encoded post data)
  4. REFERER
  5. FOLDER (unless your GUI already offer a "Save as..." like dialog)
  6. FNAME (suggested file name, different than the one extrapolated from URL, useful for giving movie downloads a meaningful name based on HTML elements)
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
SoleSoul

Re: I want my download manager to work with flashgot

Post by SoleSoul »

Thank you for the quick answer.
I will work on it and be back when it's ready.
I have a question about the concept. I understand how this works when DownloadM is not running already.
If DownloadM is already running, how a request to add a download to the current instance will be sent? We don't want another instance of DownloadM, right?
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100928 Firefox/3.6.10
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: I want my download manager to work with flashgot

Post by Giorgio Maone »

SoleSoul wrote:If DownloadM is already running, how a request to add a download to the current instance will be sent? We don't want another instance of DownloadM, right?
Most (almost all, actually) the supported download manager check whether an instance is currently running, and if it is they send the parameters to the running instance through IPC and quit.

An alternative to this would be exposing a web interface which FlashGot can send the parameter to via HTTP, like JDownloader does, but it's more complicated and requires FlashGot to launch the executable if it's not running yet. So, the first option is surely to be preferred.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
SoleSoul

Re: I want my download manager to work with flashgot

Post by SoleSoul »

Thanks for the detailed explanation. I understand.
I'll work on it.
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3
Post Reply