-
Notifications
You must be signed in to change notification settings - Fork 152
Feature request: new API endpoint to get the torrent file from the infohash or magnet link #177
Description
I can't find a reliable online service to get the torrent file (metainfo) from the infohash or magnet link.
I would like to have an endpoint in the rqbit API to do that. Something like:
GET /dht/metainfo/info-hash/{info-hash}GET /dht/metainfo/magnet-link/{magnet-link}
Or:
-
GET /dht/metainfo?info-hash?{info-hash} -
GET /dht/metainfo?magnet-link?{magnet-link} -
Magnet link:
magnet:?xt=urn:btih:3f4f9cd8e4a44540002e7386151eb759f76dec51 -
URL encoded magnet link:
magnet%3A%3Fxt%3Durn%3Abtih%3A3f4f9cd8e4a44540002e7386151eb759f76dec51
I've changed the Ubuntu example to implement a new function in the session type, which was easy. I haven't opened a PR because I don't know the project/conventions, and if you want to add this feature.
In the long term, I would like to have a client linked (via API) to the Index to which I'm contributing. This feature would allow users to add new torrents to the index without having the torrent file.
In general, I miss a Rust BitTorrent client whose API is not focused on interacting with the client GUI but allowing other apps to interact with the swarm via this client/service.