[core] Fix incompatible DLCs being returned

This commit is contained in:
derrod 2022-10-23 14:46:31 +02:00
parent c053860f25
commit ecb405172b

View file

@ -469,7 +469,7 @@ class LegendaryCore:
fetch_game_meta((app_name, _ga.namespace, _ga.catalog_item_id)) fetch_game_meta((app_name, _ga.namespace, _ga.catalog_item_id))
game = games[app_name] game = games[app_name]
if game.is_dlc: if game.is_dlc and platform in app_assets:
_dlc[game.metadata['mainGameItem']['id']].append(game) _dlc[game.metadata['mainGameItem']['id']].append(game)
elif not any(i['path'] == 'mods' for i in game.metadata.get('categories', [])) and platform in app_assets: elif not any(i['path'] == 'mods' for i in game.metadata.get('categories', [])) and platform in app_assets:
_ret.append(game) _ret.append(game)