state_str = ['queued', 'checking', 'downloading metadata', \ 'downloading', 'finished', 'seeding', 'allocating', 'checking fastresume'] print(f"Download progress: {s.progress*100:.2f}%") print(f"State: {state_str[s.state]}") # Check if the torrent is still active if handle.is_seed(): print("We are seeding....") else: print("active torrent") time.sleep(1)
state_str = ['queued', 'checking', 'downloading metadata', \ 'downloading', 'finished', 'seeding', 'allocating', 'checking fastresume'] print(f"Download progress: {s.progress*100:.2f}%") print(f"State: {state_str[s.state]}") # Check if the torrent is still active if handle.is_seed(): print("We are seeding....") else: print("active torrent") time.sleep(1)