[core] Fix getting game metadata for new titles

This commit is contained in:
derrod 2021-12-02 15:10:54 +01:00
parent 8fb4c56730
commit 7151470197

View file

@ -399,7 +399,9 @@ class LegendaryCore:
if game and asset_updated:
self.log.info(f'Updating meta for {game.app_name} due to build version mismatch')
eg_meta = self.egs.get_game_info(game.namespace, game.catalog_item_id)
# namespace/catalog item are the same for all platforms, so we can just use the first one
_ga = next(iter(app_assets.values()))
eg_meta = self.egs.get_game_info(_ga.namespace, _ga.catalog_item_id)
game = Game(app_name=app_name, app_title=eg_meta['title'], metadata=eg_meta,
asset_infos=app_assets)