mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Fix getting game metadata for new titles
This commit is contained in:
parent
8fb4c56730
commit
7151470197
|
@ -399,7 +399,9 @@ class LegendaryCore:
|
||||||
if game and asset_updated:
|
if game and asset_updated:
|
||||||
self.log.info(f'Updating meta for {game.app_name} due to build version mismatch')
|
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,
|
game = Game(app_name=app_name, app_title=eg_meta['title'], metadata=eg_meta,
|
||||||
asset_infos=app_assets)
|
asset_infos=app_assets)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue