Fix script path, fix module name

This commit is contained in:
Joey Hafner 2023-11-21 08:31:02 -08:00
parent 893e056f60
commit af1af3de04
2 changed files with 2 additions and 2 deletions

View File

@ -33,5 +33,5 @@ Prerequisites:
Steps: 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. 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. 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. 4. Done.

View File

@ -2,7 +2,7 @@ host = input("Enter host (e.g. 'localhost:8080'): ")
username = input("Enter username: ") username = input("Enter username: ")
password = input("Enter password: ") password = input("Enter password: ")
from qbittorrentapi import Client from qbittorrent-api import Client
client = Client(host=host, username=username, password=password) client = Client(host=host, username=username, password=password)
torrent_list = client.torrents.info() torrent_list = client.torrents.info()