From b57735abf3cdc3025786aa6b2627e193793485bb Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 16 Oct 2021 18:59:54 +0200 Subject: [PATCH] [core] Show warning in "info" if game asset is unavailable Also disable manifest download as that will probably fail. --- legendary/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index 18e9108..9c9bccc 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1332,6 +1332,12 @@ class LegendaryCLI: InfoItem = namedtuple('InfoItem', ['name', 'json_name', 'value', 'json_value']) game = self.core.get_game(app_name, update_meta=not args.offline) + if game and not self.core.asset_available(game): + logger.warning(f'Asset information for "{game.app_name}" is missing, the game may have been removed from ' + f'your account or you may be logged in with a different account than the one used to build ' + f'legendary\'s metadata database.') + args.offline = True + manifest_data = None entitlements = None # load installed manifest or URI