mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
Streaming means valid entries are consumed before the parser reaches any damage further down the file, so a truncated or corrupt gamelist returned whatever had been read so far. The previous full-document parse rejected such a file outright and imported nothing. Clear the accumulated entries when a parse error escapes both the incremental pass and the fallback, restoring that behavior. Errors raised while building an entry still keep what was read, as before. Also filter the fallback path to game/folder elements so it matches the incremental path, and hoist the lowercase filename and suffix tuple out of the per-extension loop in exclude_single_files. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TLTDjv3niosCXZWtjKELK2