diff --git a/list_torrents.py b/list_torrents.py index dec1174..88b4ff4 100755 --- a/list_torrents.py +++ b/list_torrents.py @@ -65,14 +65,14 @@ def print_ssv(): qb = Client("http://localhost:8080/") qb.login() sorted_torrents = sorted(qb.torrents(), key=lambda d: d["name"]) # type: ignore - print("Name Size Trackers Ratio Uploaded") + print("Name Size Trackers Ratio Uploaded") for torrent in sorted_torrents: name = torrent["name"] # type: ignore size = human_bytes(int(torrent["total_size"])) # type: ignore trackers = torrent["trackers_count"] # type: ignore ratio = torrent["ratio"] # type: ignore uploaded = human_bytes(int(torrent["uploaded"])) # type: ignore - print(f"{name} {size} {trackers} {ratio} {uploaded}") + print(f"{name} {size} {trackers} {ratio} {uploaded}") if __name__ == "__main__": diff --git a/qbt_stats_html.nu b/qbt_stats_html.nu index c3b72e9..9d663ea 100755 --- a/qbt_stats_html.nu +++ b/qbt_stats_html.nu @@ -8,7 +8,7 @@ let new_head = ( ( /home/jas/admin-scripts/list_torrents.py - | from ssv -m 1 + | from ssv -m 2 | to html | str replace ($old_head) ($new_head) | save -f -r /home/jas/public/html/torrents.html