Fix qbittorrent category error (#456)

This PR fixes an error caused by MM trying to set the category save path
to None if the string is empty.
This commit is contained in:
Maximilian Dorninger
2026-02-22 19:51:10 +01:00
committed by GitHub
parent a643c9426d
commit 7824891557

View File

@@ -60,9 +60,7 @@ class QbittorrentDownloadClient(AbstractDownloadClient):
try: try:
self.api_client.torrents_create_category( self.api_client.torrents_create_category(
name=self.config.category_name, name=self.config.category_name,
save_path=self.config.category_save_path save_path=self.config.category_save_path,
if self.config.category_save_path != ""
else None,
) )
except Conflict409Error: except Conflict409Error:
try: try: