mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[lfs] Make lowercase app name an alias rather than conflict
This commit is contained in:
parent
8460fdfd2a
commit
f2639a7e67
|
@ -362,13 +362,13 @@ class LGDLFS:
|
|||
alias_map = defaultdict(set)
|
||||
|
||||
for app_name in self._game_metadata.keys():
|
||||
# Prevent app names from being used as aliases
|
||||
collisions.add(app_name.lower())
|
||||
game = self.get_game_meta(app_name)
|
||||
if game.is_dlc:
|
||||
continue
|
||||
game_folder = game.metadata.get('customAttributes', {}).get('FolderName', {}).get('value', None)
|
||||
_aliases = generate_aliases(game.app_title, game_folder)
|
||||
# include lowercase version of app name in aliases
|
||||
_aliases.append(app_name.lower())
|
||||
for alias in _aliases:
|
||||
if alias not in aliases:
|
||||
aliases.add(alias)
|
||||
|
|
Loading…
Reference in a new issue