diff --git a/apps/qbittorrent/qbittorrent.star b/apps/qbittorrent/qbittorrent.star index 2768e52fc..fcbc5436f 100644 --- a/apps/qbittorrent/qbittorrent.star +++ b/apps/qbittorrent/qbittorrent.star @@ -42,8 +42,8 @@ def main(config): return render_header(servername, [render.WrappedText(content = "Login failed :(")]) else: speeds = get_transfer_speeds(base_url, sid) - active_counts = get_active_torrents(base_url, category, sid) - + active_counts = get_active_torrents(base_url, category, sid) + if (torrent_count > 0): torrents = get_latest_torrents(base_url, category, sid, torrent_count) if not speeds or not active_counts or not torrents: @@ -51,7 +51,6 @@ def main(config): else: torrents = None - # Get pages frames for the list of torrents. pages = [[get_stats_frame(speeds, active_counts)] * 30]