From 948ef263975955a4d54e01fe0e682e4d689972e7 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 23 Feb 2024 14:42:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Ignore=20Disc=20on=20retro?= =?UTF-8?q?py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/retro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/retro.py b/commands/retro.py index 5b29289..f114d9b 100644 --- a/commands/retro.py +++ b/commands/retro.py @@ -38,7 +38,7 @@ for console in path.iterdir(): # loop over roms without hashes for rom in Path(path / "hashes" / console.name / "roms").iterdir(): - if rom.is_file(): + if rom.is_file() and "Disc" not in rom.name: # get rom hash with open(rom, "r") as file: hash = file.read()