avoid setting provided_name if not in the json

This commit is contained in:
Damien Elmes 2020-01-19 14:10:48 +10:00
parent 5d9661cee5
commit 766321d746

View File

@ -112,7 +112,7 @@ class AddonMeta:
def addon_meta(dir_name: str, json_meta: Dict[str, Any]) -> AddonMeta:
return AddonMeta(
dir_name=dir_name,
provided_name=json_meta.get("name", dir_name),
provided_name=json_meta.get("name"),
enabled=not json_meta.get("disabled"),
installed_at=json_meta.get("mod", 0),
conflicts=json_meta.get("conflicts", []),