diff options
author | kingamajick <kingamajick@gmail.com> | 2022-02-02 08:15:33 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2022-02-06 15:11:29 +0000 |
commit | e8fd07e5e3827541000de9dcaa19b04febe7ed2d (patch) | |
tree | e27fa1be2a1af9fbdd60a0788ed1ba08e3139226 | |
parent | 1089adb84420909c1e716329a2c419a63ee29b6f (diff) | |
download | deluge-e8fd07e5e3827541000de9dcaa19b04febe7ed2d.tar.gz deluge-e8fd07e5e3827541000de9dcaa19b04febe7ed2d.tar.bz2 deluge-e8fd07e5e3827541000de9dcaa19b04febe7ed2d.zip |
[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
-rw-r--r-- | deluge/ui/console/cmdline/commands/info.py | 9 |
1 files changed, 7 insertions, 2 deletions
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) |