[core] Do not attempt to fetch metadata if update_assets is not set

This commit is contained in:
derrod 2020-05-30 00:48:54 +02:00
parent d3c2769014
commit 0610b07bf3

View file

@ -194,7 +194,8 @@ class LegendaryCore:
continue
game = self.lgd.get_game_meta(ga.app_name)
if not game or (game and game.app_version != ga.build_version and not platform_override):
if update_assets and (not game or
(game and game.app_version != ga.build_version and not platform_override)):
if game and game.app_version != ga.build_version and not platform_override:
self.log.info(f'Updating meta for {game.app_name} due to build version mismatch')