From d3e123abe659b6d42771e06727dce4d85e4b3235 Mon Sep 17 00:00:00 2001 From: Tim Wilson Date: Wed, 16 Sep 2020 20:17:12 -0600 Subject: [PATCH] bugfix added a missing newline in the `t/list` output for downloading items with an eta when viewed on desktop. --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 84b3c99..0b5c4b6 100644 --- a/bot.py +++ b/bot.py @@ -1465,7 +1465,7 @@ def torList(torrents, author_name="Torrent Transfers",title=None,description=Non down = humanbytes(t.progress * 0.01 * t.totalSize) out = "{} {} {} {} ".format(stateEmoji[t.status],errorStrs[t.error],'šŸš€' if t.rateDownload + t.rateUpload > 0 else '🐢' if t.isStalled else 'šŸ‡', 'šŸ”' if t.isPrivate else 'šŸ”“') if t.status == 'downloading': - out += "{:.1f}% of {} ā¬ {} {}/s ā¬‡ļø *{}/s* ā¬†ļø *{:.2f}* āš–ļø".format(t.progress, humanbytes(t.totalSize, d=1), '' if eta <= 0 else 'ā³ {} @ '.format(humanseconds(eta)), humanbytes(t.rateDownload), humanbytes(t.rateUpload), t.uploadRatio) + out += "{:.1f}% of {} ā¬ {} {}/s ā¬‡ļø *{}/s* ā¬†ļø *{:.2f}* āš–ļø".format(t.progress, humanbytes(t.totalSize, d=1), '' if eta <= 0 else '\nā³ {} @ '.format(humanseconds(eta)), humanbytes(t.rateDownload), humanbytes(t.rateUpload), t.uploadRatio) elif t.status == 'seeding': out += "{} ā¬ *{}/s* ā¬†ļø *{:.2f}* āš–ļø".format(humanbytes(t.totalSize, d=1), humanbytes(t.rateUpload), t.uploadRatio) elif t.status == 'stopped':