From 2bd74a4b131b0cf0621307f119e0b8a2e4af9158 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sat, 16 Nov 2024 19:54:59 -0600 Subject: [PATCH] Add category for FreeBSD --- python/qbth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]}")