Skip to content

Commit 3f0b692

Browse files
committed
Revert "Also consider "ThirdPartyManagedProvider" attribute when checking for a third party store (#30)"
This reverts commit 18af890.
1 parent 1d665e1 commit 3f0b692

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

legendary/models/game.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,7 @@ def is_origin_game(self) -> bool:
9393
def third_party_store(self) -> Optional[str]:
9494
if not self.metadata:
9595
return None
96-
97-
custom_attributes: dict[str, dict] = self.metadata.get('customAttributes', {})
98-
for key in ['ThirdPartyManagedApp', 'ThirdPartyManagedProvider']:
99-
if key not in custom_attributes:
100-
continue
101-
return custom_attributes.get(key).get('value')
102-
103-
return None
96+
return self.metadata.get('customAttributes', {}).get('ThirdPartyManagedApp', {}).get('value', None)
10497

10598
@property
10699
def partner_link_type(self):

0 commit comments

Comments
 (0)