changes from bot review

This commit is contained in:
Georges-Antoine Assi
2026-05-30 20:26:29 -04:00
parent 5144e78767
commit ad576909d3
2 changed files with 3 additions and 2 deletions

View File

@@ -134,7 +134,8 @@ class RAHasherService:
return [
f
for f in folder.iterdir()
if f.is_file() and f.suffix.lower() in COMPRESSED_FILE_EXTENSIONS
if f.is_file()
and f.name.lower().endswith(tuple(COMPRESSED_FILE_EXTENSIONS))
]
archive_files = await asyncio.to_thread(_find_archives)

View File

@@ -9,7 +9,7 @@ from pathlib import Path
# (roms_handler for hashing decisions, rahasher for skipping disc-platform
# buffer-hash attempts, feeds for PKGi passthrough).
COMPRESSED_FILE_EXTENSIONS: frozenset[str] = frozenset(
(".7z", ".bz2", ".gz", ".rar", ".tar", ".zip")
(".7z", ".bz2", ".gz", ".rar", ".tar", ".zip", ".xz", ".tgz", ".tbz2", ".txz")
)