Support magnet links
Currently only HTTPS URL pointing to .torrent files are supported because magnet links do not seem to work: when parse_magnet_uri
is used with PeerTube magnet links, the torrent is correctly added to the session but it remains in the state download_metadata
forever.
Support of HTTPS URL was removed in libtorrent 2.x so supporting magnet links is a prerequisite for upgrading to recent versions of libtorrent.
Some ideas:
- Is it a problem with the PeerTube magnet links? Try with the magnet links on this page: https://webtorrent.io/free-torrents
- Check this comment: maybe libtorrent was built without the metadata extension and so it works only with a .torrent file (local or downloaded)? Or maybe the PeerTube trackers/peers do not support the metadata extension?