Include id when printing torrent

This commit is contained in:
2022-11-24 00:17:42 +01:00
parent d546027df7
commit 97d86253c8

View File

@@ -44,5 +44,5 @@ class Torrent(object):
return json.dumps(torrentDict) return json.dumps(torrentDict)
def __str__(self): def __str__(self):
return "{} Progress: {}% ETA: {} State: {} Paused: {}".format( return "{} {} Progress: {}% ETA: {} State: {} Paused: {}".format(
self.name[:59].ljust(60), self.progress.rjust(5), self.eta.rjust(11), self.state.ljust(12), self.paused) self.key, self.name[:59].ljust(60), self.progress.rjust(5), self.eta.rjust(11), self.state.ljust(12), self.paused)