mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-09-15 17:44:48 +08:00
breaking config change: category
Category save_path must be exact match and not keyword
This commit is contained in:
parent
1fb198f613
commit
14390b3450
1 changed files with 2 additions and 1 deletions
|
@ -293,9 +293,10 @@ class Config:
|
|||
if "cat" in self.data and self.data["cat"] is not None:
|
||||
cat_path = self.data["cat"]
|
||||
for cat, save_path in cat_path.items():
|
||||
if save_path in path:
|
||||
if save_path == path:
|
||||
category = cat
|
||||
break
|
||||
|
||||
if not category:
|
||||
default_cat = path.split('/')[-2]
|
||||
category = str(default_cat)
|
||||
|
|
Loading…
Add table
Reference in a new issue