|
@@ -68,8 +68,13 @@ def import_gamelist_file_to_db_for_system(
|
|
|
|
|
|
if not created and not full_scan:
|
|
|
not_imported_games.append(obj)
|
|
|
- logger.info(f"Found game {obj} and not doing full scan, so skipping")
|
|
|
+ logger.info(f"Not updating {obj}, use full-scan to update")
|
|
|
+ print(f"Not updating {obj}, use full-scan to update")
|
|
|
continue
|
|
|
+ elif not created and full_scan:
|
|
|
+ print(f"Updating {obj}")
|
|
|
+ else:
|
|
|
+ print(f"Adding {obj}")
|
|
|
|
|
|
region = Game.Region.X.name
|
|
|
|
|
@@ -80,12 +85,14 @@ def import_gamelist_file_to_db_for_system(
|
|
|
if any(eu in game_path for eu in REGION_KEYWORDS["EU"]):
|
|
|
region = Game.Region.EU.name
|
|
|
|
|
|
- english_patched = any(key in game_path.lower() for key in ENGLISH_PATCHED_KEYWORDS)
|
|
|
+ english_patched = any(
|
|
|
+ key in game_path.lower() for key in ENGLISH_PATCHED_KEYWORDS
|
|
|
+ )
|
|
|
patch_version = None
|
|
|
if english_patched:
|
|
|
- version_re = re.search ('(?= v)(.*?)(?=\))', game_path.lower())
|
|
|
+ version_re = re.search("(?= v)(.*?)(?=\))", game_path.lower())
|
|
|
if version_re:
|
|
|
- patch_version = version_re.group(0)[2:]
|
|
|
+ patch_version = version_re.group(0)[2:]
|
|
|
undub = any(key in game_path.lower() for key in UNDUB_KEYWORDS)
|
|
|
hack = any(key in game_path.lower() for key in HACK_KEYWORDS)
|
|
|
|