mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[core] Exclude mods from games list
This commit is contained in:
parent
37083b01de
commit
effc74b73b
|
@ -254,7 +254,7 @@ class LegendaryCore:
|
||||||
|
|
||||||
if game.is_dlc:
|
if game.is_dlc:
|
||||||
_dlc[game.metadata['mainGameItem']['id']].append(game)
|
_dlc[game.metadata['mainGameItem']['id']].append(game)
|
||||||
else:
|
elif not any(i['path'] == 'mods' for i in game.metadata.get('categories', [])):
|
||||||
_ret.append(game)
|
_ret.append(game)
|
||||||
|
|
||||||
return _ret, _dlc
|
return _ret, _dlc
|
||||||
|
|
Loading…
Reference in a new issue