diff --git a/python/qbth.py b/python/qbth.py index d1618ce..f4195d2 100755 --- a/python/qbth.py +++ b/python/qbth.py @@ -31,7 +31,7 @@ import requests from bs4 import BeautifulSoup from docopt import docopt -args = docopt(__doc__) +args = docopt(__doc__) # type: ignore conn_info = dict( host=args["HOSTNAME"], username=args["USERNAME"], @@ -235,7 +235,7 @@ def add_freebsd(rel_ver: str): with qbittorrentapi.Client(**conn_info) as qbt_client: for line in data: if line.startswith("magnet:"): - if qbt_client.torrents_add(line) != "Ok.": + if qbt_client.torrents_add(line, category="distro") != "Ok.": raise Exception("Failed to add torrent: " + line.split("=")[2]) print(f"Added {line.split('=')[2]}")