From bd641854f735be6224b26995b44ddcede159d5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Thu, 22 Aug 2024 21:44:09 +0200 Subject: [PATCH] [core] make sure we parse ownershiptoken as lowercase --- legendary/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index 9181de0..e5a1277 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -1493,7 +1493,7 @@ class LegendaryCore: args=new_manifest.meta.uninstall_action_args) offline = game.metadata.get('customAttributes', {}).get('CanRunOffline', {}).get('value', 'true') - ot = game.metadata.get('customAttributes', {}).get('OwnershipToken', {}).get('value', 'false') + ot = game.metadata.get('customAttributes', {}).get('OwnershipToken', {}).get('value', 'false').lower() if file_install_tag is None: file_install_tag = [] @@ -1759,7 +1759,7 @@ class LegendaryCore: path=new_manifest.meta.prereq_path, args=new_manifest.meta.prereq_args) offline = game.metadata.get('customAttributes', {}).get('CanRunOffline', {}).get('value', 'true') - ot = game.metadata.get('customAttributes', {}).get('OwnershipToken', {}).get('value', 'false') + ot = game.metadata.get('customAttributes', {}).get('OwnershipToken', {}).get('value', 'false').lower() igame = InstalledGame(app_name=game.app_name, title=game.app_title, prereq_info=prereq, base_urls=base_urls, install_path=app_path, version=new_manifest.meta.build_version, is_dlc=game.is_dlc, executable=new_manifest.meta.launch_exe, can_run_offline=offline == 'true',