Make identification query more advanced for edgecases
This commit is contained in:
parent
ef82f69e99
commit
52bf2bad01
1 changed files with 2 additions and 2 deletions
|
|
@ -200,12 +200,12 @@ class ISO:
|
||||||
|
|
||||||
if not redump:
|
if not redump:
|
||||||
|
|
||||||
core.vprint('Trying to find redump key based on size and game title', args)
|
core.vprint('Trying to find redump key based on size, game title, and country', args)
|
||||||
|
|
||||||
if not game_title:
|
if not game_title:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
keys = c.execute('SELECT * FROM games WHERE lower(name) LIKE ? AND size = ?', ['%' + game_title.lower() + '%', str(self.size)]).fetchall()
|
keys = c.execute('SELECT * FROM games WHERE lower(name) LIKE ? AND size = ?', ['%' + '%'.join(game_title.lower().split(' ')) + '%' + core.serial_country(self.game_id).lower() + '%', str(self.size)]).fetchall()
|
||||||
|
|
||||||
if keys:
|
if keys:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue