Revamped info command detailed file view so it now shows a pretty tree look and made it ensure at least 8 characters of torrent ID get printed before deciding not to wrap to next line in the default, compact view
This commit is contained in:
parent
a2c347a79c
commit
8a261b26e8
|
@ -341,7 +341,8 @@ class Command(BaseCommand):
|
|||
#Shorten the ID if it's necessary. Pretty hacky
|
||||
#I _REALLY_ should make a nice function for it that can partition and shorten stuff
|
||||
space_left = cols - strwidth("[s] 100.00% " + status["name"] + " "*3) - 2
|
||||
if space_left >= len(torrent_id) - 2:
|
||||
|
||||
if space_left - 8 >= len(torrent_id):
|
||||
#There's enough space, print it
|
||||
s += " {!cyan!}%s" % torrent_id
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue