mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 15:54:45 +01:00
ps2 igdb id set as constant
This commit is contained in:
1 parent
6c43b322bd
commit
5adb3aab9d
1 file changed
+2
-1
@@ -15,6 +15,7 @@ from .ps2_opl_index import opl_index
|
||||
|
||||
redis_client = Redis(host=REDIS_HOST, port=REDIS_PORT, db=0, decode_responses=True)
|
||||
ps2_opl_regex = r"^([A-Z]{4}_\d{3}\.\d{2})\..*$"
|
||||
PS2_IGDB_ID = 8
|
||||
|
||||
class IGDBHandler:
|
||||
def __init__(self) -> None:
|
||||
@@ -120,7 +121,7 @@ class IGDBHandler:
|
||||
|
||||
# Patch support for PS2 OPL filename format
|
||||
match = re.match(ps2_opl_regex, search_term)
|
||||
if p_igdb_id == 8 and match:
|
||||
if p_igdb_id == PS2_IGDB_ID and match:
|
||||
serial_code = match.group(1)
|
||||
index_entry = opl_index.get(serial_code, None)
|
||||
if index_entry:
|
||||
|
||||
Reference in new issue
Block a user