2023-01-27 22:53:52 -08:00
|
|
|
host = input("Enter host (e.g. 'localhost:8080'): ")
|
|
|
|
username = input("Enter username: ")
|
|
|
|
password = input("Enter password: ")
|
|
|
|
|
|
|
|
from qbittorrentapi import Client
|
|
|
|
client = Client(host=host, username=username, password=password)
|
|
|
|
|
|
|
|
torrent_list = client.torrents.info()
|
|
|
|
|
|
|
|
for torrent in torrent_list:
|
|
|
|
for status in torrent.trackers:
|
|
|
|
if 'Unregistered torrent' in status.msg:
|
2023-01-27 23:14:54 -08:00
|
|
|
print(torrent.name)
|
2023-01-27 22:53:52 -08:00
|
|
|
torrent.delete(hash=(torrent.hash),delete_files=True)
|