Closed mianharisali closed 7 years ago
I doubt this is the same problem. Can you give me a link to the source code I can see how to you retrieve the tracker list?
@Override
public Set<String> getTrackersUrl()
{
List<AnnounceEntry> trackers = th.trackers();
Set<String> urls = new HashSet<>(trackers.size());
for (AnnounceEntry entry : trackers) {
urls.add(entry.url());
}
return urls;
}
You know, I just found the same flaw in our client, but there is nothing wrong with jlibtorrent
, it does what's supposed to do, if you fetch magnet, it returns the info-dict from the DHT, and that info does not include trackers. You need parse the magnet link and enhance your TorrentInfo
, that I assume you decode from the data returned from fetchMagnet
.
I need to confirm this
yes, confirmed, internally in libtorrent
the trackers are not added to the torrent info used to create the info-dict data, and that's ok
Ok, in the next release (soon) you will be able to call SessionManager#fetchMagnet(String uri, int timeout, boolean extra)
and it will give you the trackers.
@aldenml thats awesome (Y)
I tried every thing but the tracker list is empty if torrent is added using magnet uri. you can test it on this open source project.
https://github.com/proninyaroslav/libretorrent
may be this issue is related to following issue.
https://github.com/frostwire/frostwire/issues/294