RareGame: Use Game property instead of looking into metadata
This commit is contained in:
parent
1914beb5e6
commit
e2bdbbab40
|
@ -411,9 +411,7 @@ class RareGame(RareGameSlim):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_ubisoft(self) -> bool:
|
def is_ubisoft(self) -> bool:
|
||||||
return (
|
return self.game.partner_link_type == "ubisoft"
|
||||||
self.game.metadata.get("customAttributes", {}).get("partnerLinkType", {}).get("value") == "ubisoft"
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def folder_name(self) -> str:
|
def folder_name(self) -> str:
|
||||||
|
|
Loading…
Reference in a new issue