mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 15:43:28 +02:00
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:
committed by
GitHub
parent
a643c9426d
commit
7824891557
@@ -60,9 +60,7 @@ class QbittorrentDownloadClient(AbstractDownloadClient):
|
||||
try:
|
||||
self.api_client.torrents_create_category(
|
||||
name=self.config.category_name,
|
||||
save_path=self.config.category_save_path
|
||||
if self.config.category_save_path != ""
|
||||
else None,
|
||||
save_path=self.config.category_save_path,
|
||||
)
|
||||
except Conflict409Error:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user