Skip to content

Feature request: new API endpoint to get the torrent file from the infohash or magnet link #177

@josecelano

Description

@josecelano

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions