mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-12-17 14:18:52 +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:
|
if "cat" in self.data and self.data["cat"] is not None:
|
||||||
cat_path = self.data["cat"]
|
cat_path = self.data["cat"]
|
||||||
for cat, save_path in cat_path.items():
|
for cat, save_path in cat_path.items():
|
||||||
if save_path in path:
|
if save_path == path:
|
||||||
category = cat
|
category = cat
|
||||||
break
|
break
|
||||||
|
|
||||||
if not category:
|
if not category:
|
||||||
default_cat = path.split('/')[-2]
|
default_cat = path.split('/')[-2]
|
||||||
category = str(default_cat)
|
category = str(default_cat)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue