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

Adding support for magnet link generation #11

Open
tchoutri opened this issue Dec 24, 2017 · 8 comments
Open

Adding support for magnet link generation #11

tchoutri opened this issue Dec 24, 2017 · 8 comments
Labels
enhancement New feature or request postpone This issue will be solved in the future

Comments

@tchoutri
Copy link

Hi! I'm already using Bento to parse torrent files, and I would like to know if you'd accept a PR that implements magnet link generation from a torrent file.

Happy holidays :)

@folz
Copy link
Owner

folz commented Dec 24, 2017 via email

@tchoutri
Copy link
Author

@folz Okay, I'm almost done implementing it. Before I open a PR, do you have any opinion about the API I should provide? I understand that I should provide a ! and non-! of my magnet function, but should I leave the file reading to the user?

Thanks for your support. :)

@folz
Copy link
Owner

folz commented Jan 24, 2018

Yep, like .torrent!?() you should have one version that raises and one that returns ok/error, and the user should handle reading a file or otherwise loading the iodata that you pass to Bento.magnet!?(), and they should also handle saving/persisting the response. You just need to accept and return some iodata.

Thanks for working on this. I'm looking forward to the PR!

@fire
Copy link

fire commented Nov 10, 2020

Was this ever submitted?

@folz
Copy link
Owner

folz commented Nov 10, 2020

No, it wasn't. If you want to submit a PR, or if @tchoutri is interested in finding their old work, I'd be happy to get it merged in.

@tchoutri
Copy link
Author

Unfortunately I have lost said work. :/

@folz
Copy link
Owner

folz commented Nov 11, 2020

No worries :) just figured I'd ask.

@fire
Copy link

fire commented Nov 11, 2020

My plan is to use c libtorrent wrapped via Unifex to support the webtorrent protocol, however that's not this library. Thanks for all the replies.

@mogeko mogeko added enhancement New feature or request postpone This issue will be solved in the future labels Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request postpone This issue will be solved in the future
Projects
None yet
Development

No branches or pull requests

4 participants