fixed gog scanner bugs

This commit is contained in:
Roy 2024-05-05 10:34:47 -07:00 committed by GitHub
parent 2c67e0079a
commit f2a3f5bec8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -749,7 +749,8 @@ def getGogGameInfo(filePath):
if "gameName" in line: if "gameName" in line:
game_name = re.findall(r'\"(.+?)\"', split_line[1]) game_name = re.findall(r'\"(.+?)\"', split_line[1])
if game_name: if game_name:
game_name = game_name[0] game_name = bytes(game_name[0], 'utf-8').decode('unicode_escape')
game_name = game_name.replace('!22', '')
if "exe" in line and "GOG Galaxy" in line and not "unins000.exe" in line: if "exe" in line and "GOG Galaxy" in line and not "unins000.exe" in line:
exe_path = re.findall(r'\"(.+?)\"', split_line[1]) exe_path = re.findall(r'\"(.+?)\"', split_line[1])
if exe_path: if exe_path: