From e8fd07e5e3827541000de9dcaa19b04febe7ed2d Mon Sep 17 00:00:00 2001 From: kingamajick Date: Wed, 2 Feb 2022 08:15:33 +0000 Subject: [Console] Add the torrent label to info command Closes: https://dev.deluge-torrent.org/ticket/1556 Closes: https://github.com/deluge-torrent/deluge/pull/356 --- deluge/ui/console/cmdline/commands/info.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'deluge') diff --git a/deluge/ui/console/cmdline/commands/info.py b/deluge/ui/console/cmdline/commands/info.py index afcc13e3f..3533e519e 100644 --- a/deluge/ui/console/cmdline/commands/info.py +++ b/deluge/ui/console/cmdline/commands/info.py @@ -67,6 +67,7 @@ STATUS_KEYS = [ 'total_payload_download', 'total_payload_upload', 'time_added', + 'label', ] # Add filter specific state to torrent states @@ -421,10 +422,14 @@ class Command(BaseCommand): self.console.write(s) s = '{!info!}Download Folder: {!input!}%s' % status['download_location'] - self.console.write(s + '\n') + self.console.write(s) + + if 'label' in status: + s = '{!info!}Label: {!input!}%s' % status['label'] + self.console.write(s) if detailed: - self.console.write('{!info!}Files in torrent') + self.console.write('\n{!info!}Files in torrent') self.show_file_info(torrent_id, status) self.console.write('{!info!}Connected peers') self.show_peer_info(torrent_id, status) -- cgit