fix name sub incase added in usetting and try to pass it from args

Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
anasty17 2024-05-27 18:12:25 +03:00
parent 4ab846f657
commit db8b0fca0f

View File

@ -160,9 +160,9 @@ class TaskConfig:
self.nameSub = (
self.nameSub
or self.userDict.get("name_sub", False)
or config_dict["NAME_SUBSTITUTE"]
or (config_dict["NAME_SUBSTITUTE"]
if "name_sub" not in self.userDict
else ""
else "")
)
if self.nameSub:
self.nameSub = [x.split(" : ") for x in self.nameSub.split(" | ")]