Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work with magnet link? #12

Open
mzramna opened this issue Jul 25, 2020 · 6 comments
Open

does not work with magnet link? #12

mzramna opened this issue Jul 25, 2020 · 6 comments

Comments

@mzramna
Copy link

mzramna commented Jul 25, 2020

there is any way to load the torrent status nly by the magnet link?

@idlesign
Copy link
Owner

idlesign commented Jul 26, 2020

Currently no.
But I was thinking it over last month.
I'll make an experiment and add support if success.

@modbender
Copy link

Any progress here? Been months. I have been using this for some weeks and now am in a position that I need to create torrent file from magnet link. Was looking at something like this: https://stackoverflow.com/questions/8689828/libtorrent-given-a-magnet-link-how-do-you-generate-a-torrent-file, if it's possible for them it's not like it's not possible for this.

@idlesign
Copy link
Owner

No progress so far.
Thnk you for the link, I'll look into it in a week.

@idlesign
Copy link
Owner

About the link. libtorrent is a full featured torrent client library.

To implement full .torrent file reconstruction from a magnet link one needs to: implement DHT (BEP5) client, which will find nodes and peers, then connect to a peer and download metadata (BEP9).

The above said seems to be out of scope of a tool working with .torrent files such as torrentool.
Adding dependencies also seems undesirable.

I've started implementation of a small DHT client, but it never went further.

@idlesign
Copy link
Owner

This link is primarily about uri parsing. Magnet links may include as little as only info hash, so no information about trackers, files etc. may be available. Given that we couldn't reconstruct a full .torrent file from a magnet link without DHT, etc.

The linked code puts magnet-uri entry in a generated torrent file, but it's not an official extension af far as I know. Maybe it is supported solely by rtorrent, maybe not. That should be investigated.

If magnet-uri is supported by major torrent clients, and we're ok with such quazzy torrent files we can try and implements support for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants