1
0
Fork 0
mirror of synced 2024-09-28 15:31:14 +12:00

RareGame: Add is_ubisoft property

This commit is contained in:
loathingKernel 2023-03-13 14:39:14 +02:00
parent ec5bf7227b
commit b7d499f3e1
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -420,6 +420,12 @@ class RareGame(RareGameSlim):
self.game.metadata.get("customAttributes", {}).get("ThirdPartyManagedApp", {}).get("value") == "Origin"
)
@property
def is_ubisoft(self) -> bool:
return (
self.game.metadata.get("customAttributes", {}).get("partnerLinkType", {}).get("value") == "ubisoft"
)
@property
def folder_name(self) -> str:
return self.game.metadata.get("customAttributes", {}).get("FolderName", {}).get("value")