libtorrent
libtorrent copied to clipboard
v1 skipping tracker anounce
Please provide the following information
libtorrent version (or branch): Python bindings from pip install libtorrent (latest)
platform/architecture: Google Colab
compiler and compiler version:
my complete code from libtorrent tutorial :
import time
import sys
from google.colab import files
ses = lt.session({'listen_interfaces': '0.0.0.0:1278'})
downloads=[]
source=files.upload()
params={
"save_path": "/content/drive/downloaded/", "ti": lt.torrent_info(list(source.keys())[0])
}
downloads.append(ses.add_torrent(params))
print('starting', s.name)
while (not s.is_seeding):
h = downloads[-1]
s = h.status()
print('\r%.2f%% complete (down: %.1f kB/s up: %.1f kB/s peers: %d) %s' % (
s.progress * 100, s.download_rate / 1000, s.upload_rate / 1000,
s.num_peers, s.state), end=' ')
alerts = ses.pop_alerts()
for a in alerts:
if a.category() & lt.alert.category_t.error_notification:
print(a)
sys.stdout.flush()
time.sleep(1)
print(h.status().name, 'complete')
It is clearly not connecting to trackers i tried out different ports and downloaded using qbittorrent gui (which downloaded in just a few seconds)
from your screenshot, it's saying that:
- your loopback device (127.0.0.1) is not announced (which makes sense, since the tracker isn't also running on loopback).
- wss is not a supported tracker schema. It looks like this is perhaps a webtorrent, which requires a build from the
masterbranch with webtorrent support enabled