From effc74b73b01c7c0fabfb8dc580490e49bb4ff8b Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 1 Nov 2020 16:38:43 +0100 Subject: [PATCH] [core] Exclude mods from games list --- legendary/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index e89de2d..5bb177b 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -254,7 +254,7 @@ class LegendaryCore: if game.is_dlc: _dlc[game.metadata['mainGameItem']['id']].append(game) - else: + elif not any(i['path'] == 'mods' for i in game.metadata.get('categories', [])): _ret.append(game) return _ret, _dlc