pawamoy / aria2p

Command-line tool and library to interact with an aria2c daemon process with JSON-RPC.
https://pawamoy.github.io/aria2p
ISC License
479 stars 93 forks source link

About download issues #101

Closed lxmicode closed 3 years ago

lxmicode commented 3 years ago

1.I tried to use the add_magnet method, but the actual download GID will only be generated after the magnet is completed. How do I get it?

2.How does aria2p call aria2 native methods?

3.Is there any online help file to view

pawamoy commented 3 years ago

Hi, aria2 creates a different download once the magnet metadata is downloaded indeed, you can get it with the followed_by or followed_by_ids properties of the magnet Download object (you must update it once the magnet metadata is downloaded).

We use JSON-RPC to communicate with the aria2 server. It's basically HTTP requests with JSON formatted payloads and responses. Check out the code in client.py.

Documentation (and code reference) is here: https://pawamoy.github.io/aria2p

lxmicode commented 3 years ago

thanks