Joey Hafner
97e4cc547a
1. homelab [Gitea](https://gitea.jafner.tools/Jafner/homelab), [Github (docker_config)](https://github.com/Jafner/docker_config), [Github (wiki)](https://github.com/Jafner/wiki), [Github (cloud_tools)](https://github.com/Jafner/cloud_tools), [Github (self-hosting)](https://github.com/Jafner/self-hosting). - Rename? Jafner.net? Wouldn't that be `Jafner/Jafner.net/Jafner.net`? 2. Jafner.dev [Github](https://github.com/Jafner/Jafner.dev). 3. dotfiles [Gitea](https://gitea.jafner.tools/Jafner/dotfiles), [Github](https://github.com/Jafner/dotfiles). 4. nvgm [Gitea](https://gitea.jafner.tools/Jafner/nvgm) 5. pamidi [Gitea](https://gitea.jafner.tools/Jafner/pamidi), [Github](https://github.com/Jafner/pamidi) 6. docker-llm-amd [Gitea](https://gitea.jafner.tools/Jafner/docker-llm-amd) 7. doradash [Gitea](https://gitea.jafner.tools/Jafner/doradash) 8. clip-it-and-ship-it [Gitea (PyClipIt)](https://gitea.jafner.tools/Jafner/PyClipIt), [Github](https://github.com/Jafner/clip-it-and-ship-it). 9. razer battery led [Github](https://github.com/Jafner/Razer-BatteryLevelRGB) 10. 5etools-docker [Github](https://github.com/Jafner/5etools-docker) 11. jafner-homebrew [Github](https://github.com/Jafner/jafner-homebrew)
24 lines
753 B
Python
24 lines
753 B
Python
connection_info = dict(
|
|
host = input("Enter host (e.g. 'localhost'): "),
|
|
port = input("Enter port (e.g. '8080'): "),
|
|
username = input("Enter username: "),
|
|
password = input("Enter password: "),
|
|
)
|
|
|
|
from hurry.filesize import size, si
|
|
|
|
import qbittorrentapi
|
|
client = qbittorrentapi.Client(**connection_info)
|
|
|
|
try:
|
|
client.auth_log_in()
|
|
except qbittorrentapi.LoginFailed as error:
|
|
print(error)
|
|
|
|
torrent_list = client.torrents.info()
|
|
|
|
for torrent in torrent_list:
|
|
for status in torrent.trackers:
|
|
if 'UNREGISTERED TORRENT' in status.msg.upper() or 'TORRENT NOT REGISTERED' in status.msg.upper():
|
|
print(torrent.name, size(torrent.size, system=si))
|
|
torrent.delete(hash=(torrent.hash),delete_files=True) |