Fix script path, fix module name
This commit is contained in:
parent
893e056f60
commit
af1af3de04
@ -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.
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user