Mod, QMod: add long description property

This commit is contained in:
Toast 2025-05-29 19:08:59 +02:00
parent 902227a8bd
commit 8a36617298
2 changed files with 12 additions and 0 deletions

View file

@ -41,6 +41,12 @@ class Mod:
else:
return self.__config.get("description", str)
@property
def long_description(self) -> str | None:
if "descriptionLong" in self.__meta:
return self.__meta.get("descriptionLong", str)
return None
@property
def author(self) -> str | None:
# TODO: return list with authors