From 8fb4c56730dd91c0170ae30fdf403e5b466b37de Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 2 Dec 2021 14:34:29 +0100 Subject: [PATCH] [cli] Fix some remaining platform-unawareness --- legendary/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index d3bcfba..1d4f5a6 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1428,7 +1428,7 @@ class LegendaryCLI: # list all owned DLC based on entitlements if entitlements and not game.is_dlc: owned_entitlements = {i['entitlementName'] for i in entitlements} - owned_app_names = {g.app_name for g in self.core.get_assets()} + owned_app_names = {g.app_name for g in self.core.get_assets(args.platform)} owned_dlc = [] for dlc in game.metadata.get('dlcItemList', []): installable = dlc.get('releaseInfo', None) @@ -1706,7 +1706,9 @@ class LegendaryCLI: before = self.core.lgd.get_dir_size() # delete metadata logger.debug('Removing app metadata...') - app_names = set(g.app_name for g in self.core.get_assets(update_assets=False)) + app_names = {} + for _platform in self.core.get_installed_platforms(): + app_names |= set(g.app_name for g in self.core.get_assets(update_assets=False, platform=_platform)) self.core.lgd.clean_metadata(app_names) if not args.keep_manifests: