mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Added more logs on scan when no files found
This commit is contained in:
@@ -37,7 +37,10 @@ async def scan_platforms(
|
||||
platform_list = [dbh.get_platform(s).fs_slug for s in platform_slugs]
|
||||
platform_list = platform_list or fs_platforms
|
||||
|
||||
log.info(f"Found {len(platform_list)} platforms ")
|
||||
if (len(platform_list) == 0):
|
||||
log.warn("⚠️ No platforms found, verify that the folder structure is right and the volume is mounted correctly ")
|
||||
else:
|
||||
log.info(f"Found {len(platform_list)} platforms in file system ")
|
||||
|
||||
for platform_slug in platform_list:
|
||||
scanned_platform = scan_platform(platform_slug)
|
||||
@@ -58,6 +61,11 @@ async def scan_platforms(
|
||||
log.error(e)
|
||||
continue
|
||||
|
||||
if (len(fs_roms) == 0):
|
||||
log.warning(" ⚠️ No roms found, verify that the folder structure is correct")
|
||||
else:
|
||||
log.warn(f" {len(fs_roms)} roms found")
|
||||
|
||||
for fs_rom in fs_roms:
|
||||
rom = dbh.get_rom_by_filename(scanned_platform.slug, fs_rom["file_name"])
|
||||
if (rom and rom.id not in selected_roms and not complete_rescan) and not (rescan_unidentified and rom and not rom.igdb_id):
|
||||
|
||||
Reference in New Issue
Block a user