Ejemplo n.º 1
0
def leech(torrentfilename):
    client = BittorrentClient()
    torrent = client.add_torrent(torrentfilename)
    torrent.strategy = torrentstrategy.quit_when_done(15)
    loop(client)
Ejemplo n.º 2
0
def leech(torrentfilename):
    client = BittorrentClient()
    torrent = client.add_torrent(torrentfilename)
    torrent.strategy = torrentstrategy.quit_when_done(15)
    loop(client)
Ejemplo n.º 3
0
def seed(torrentfile, datafile):
    client = BittorrentClient(6882)
    torrent = client.add_torrent(torrentfile)
    torrent.load(datafile)
    torrent.tracker_update()
    loop(client)
Ejemplo n.º 4
0
def seed(torrentfile, datafile):
    client = BittorrentClient(6882)
    torrent = client.add_torrent(torrentfile)
    torrent.load(datafile)
    torrent.tracker_update()
    loop(client)