fied missing parameters with no IGDB roms

This commit is contained in:
zurdi
2023-08-07 17:19:57 +02:00
parent 25830becda
commit 9b6e4e946c

View File

@@ -88,6 +88,8 @@ def scan_rom(
else:
igdbh_rom = igdbh.get_rom(rom_attrs["file_name"], platform.igdb_id)
rom_attrs.update(igdbh_rom)
# Return early if not found in IGDB
if not igdbh_rom["r_igdb_id"]:
log.warning(
@@ -98,7 +100,6 @@ def scan_rom(
log.info(emoji.emojize(f"\t Identified as {igdbh_rom['r_name']} :alien_monster:"))
# Update properties from IGDB
rom_attrs.update(igdbh_rom)
rom_attrs.update(
fs.get_cover(
overwrite=overwrite,