From af1af3de04f6628b4ec34b286bce22ab7a25fbb9 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 21 Nov 2023 08:31:02 -0800 Subject: [PATCH] Fix script path, fix module name --- fighter/config/qbittorrent/README.md | 2 +- fighter/scripts/remove_trumped_torrents.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fighter/config/qbittorrent/README.md b/fighter/config/qbittorrent/README.md index 77779fd..58abe7e 100644 --- a/fighter/config/qbittorrent/README.md +++ b/fighter/config/qbittorrent/README.md @@ -33,5 +33,5 @@ Prerequisites: Steps: 1. Get the URL of the Qbittorrent webUI. `docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' qbittorrent_qbittorrent`. We'll assume the default port of `8080` for the webUI here. 2. Get the username and password for the webUI. These should be in a password manager. -3. Run the script `python3 ~/homelab/jafner-net/scripts/remove_trumped_torrents.py`. When prompted, input the `host` like `172.18.0.28:8080` with the IP found in step 1. Use the credentials from step 2 for username and password. +3. Run the script `python3 ~/homelab/fighter/scripts/remove_trumped_torrents.py`. When prompted, input the `host` like `172.18.0.28:8080` with the IP found in step 1. Use the credentials from step 2 for username and password. 4. Done. diff --git a/fighter/scripts/remove_trumped_torrents.py b/fighter/scripts/remove_trumped_torrents.py index c1be431..8067c30 100644 --- a/fighter/scripts/remove_trumped_torrents.py +++ b/fighter/scripts/remove_trumped_torrents.py @@ -2,7 +2,7 @@ host = input("Enter host (e.g. 'localhost:8080'): ") username = input("Enter username: ") password = input("Enter password: ") -from qbittorrentapi import Client +from qbittorrent-api import Client client = Client(host=host, username=username, password=password) torrent_list = client.torrents.info()