mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Refactor
This commit is contained in:
parent
bf1d965374
commit
d5a02db4dd
2
bin/qbth
2
bin/qbth
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user