Fix namesub from arg

This commit is contained in:
GHLuckM4n 2024-03-15 21:04:56 +07:00
parent c426fc8904
commit 2dd3d6c6ed

View File

@ -156,7 +156,8 @@ class TaskConfig:
async def beforeStart(self):
self.nameSub = (
self.userDict.get("name_sub", False) or config_dict["NAME_SUBSTITUTE"]
self.nameSub
or self.userDict.get("name_sub", False) or config_dict["NAME_SUBSTITUTE"]
if "name_sub" not in self.userDict
else ""
)