Update script to reflect current docs

This commit is contained in:
Joey Hafner 2023-11-21 09:01:39 -08:00
parent 0a38f321f9
commit 600b6937f8

View File

@ -1,9 +1,17 @@
host = input("Enter host (e.g. 'localhost:8080'): ")
username = input("Enter username: ")
password = input("Enter password: ")
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: "),
)
import qbittorrentapi
client = Client(host=host, username=username, password=password)
client = qbittorrentapi.Client(**connection_info)
try:
client.auth_log_in()
except qbittorrentapi.LoginFailed as error:
print(error)
torrent_list = client.torrents.info()