c# - MonoTorrent magnet link download does not start -
i believe monotorrent library can this, due lack of documentation haven't been able working.
to start with, monotorrent seems able download original torrents using following code: https://smuxi.im/wiki/monotorrent/managing_torrents
but due increase of magnet links popularity, would magnet links working well. "trick" of getting .torrent out of them (like using ones µtorrent generates) doesn't work me either when using same code above. stays stuck this, founding 1-3 peers per second making no progress:
stackoverflow best question / answer @ topic monotorrent - magnet link torrent file unfortunately answer didn't match monotorrent constructors following:
public torrentmanager(torrent torrent, string savepath, torrentsettings settings); public torrentmanager(magnetlink magnetlink, string savepath, torrentsettings settings, string torrentsave); public torrentmanager(torrent torrent, string savepath, torrentsettings settings, string basedirectory); public torrentmanager(infohash infohash, string savepath, torrentsettings settings, string torrentsave, ilist<rawtrackertier> announces);
finally went try other code, apparently need need either pass magnetlink or infohash, gave go infohash following:
clientengine engine; torrentmanager manager; string savepath; public torrentdownload(string savepath) { this.engine = new clientengine(new enginesettings()); this.savepath = savepath; } public void downloadmagnet(string hash) { manager = new torrentmanager(infohash.fromhex(hash), savepath, new torrentsettings(), savepath, new list<rawtrackertier>()); engine.register(manager); manager.start(); }
am missing my download doesn't start? no errors / no crashes
Comments
Post a Comment