This commit is contained in:
Jeffrey Serio 2024-07-27 22:06:43 -05:00
parent bf1d965374
commit d5a02db4dd

View File

@ -70,7 +70,7 @@ def remove_torrents(distro_substring: str):
torrent's file name. torrent's file name.
""" """
for torrent in qb.torrents(): for torrent in qb.torrents():
if distro_substring in torrent.get("name") # type: ignore if distro_substring in torrent.get("name"): # type: ignore
qb.delete_permanently(torrent.get("hash")) # type: ignore qb.delete_permanently(torrent.get("hash")) # type: ignore
print(f"Removed {torrent.get('name')}") # type: ignore print(f"Removed {torrent.get('name')}") # type: ignore