From 99378945d5b0442b6d9dc7c995665ca71559cbbd Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:37:17 -0500 Subject: [PATCH] Fix remove_fedora() --- bin/qbth | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/qbth b/bin/qbth index 0750c96..f2386a3 100755 --- a/bin/qbth +++ b/bin/qbth @@ -87,7 +87,11 @@ def add_fedora(relver: str): def remove_fedora(relver: str): - remove_torrents(f"{relver}.torrent") + torrents = qb.torrents() + for torrent in torrents: + if torrent["name"].startswith("Fedora") and torrent["name"].endswith(relver): + qb.delete_permanently(torrent["hash"]) + print(f"Removed {torrent['name']}") def add_freebsd(relver: str):