mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 15:13:24 +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:
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user