From bb376df09f74c0e55a4458ec8cda510c11fd4c9b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 23 Feb 2024 15:10:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20flake8=20on=20anime-ultime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/anime-ultime.py | 6 ++---- commands/retro.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/commands/anime-ultime.py b/commands/anime-ultime.py index 1612d8e..38dfbdc 100755 --- a/commands/anime-ultime.py +++ b/commands/anime-ultime.py @@ -17,10 +17,8 @@ root_url = "http://www.anime-ultime.net" while nextHop: r1 = requests.get(url) - m1 = re.search( - "javascript:open_ddlbox\('dl_orig', '([0-9]+)', 'orig'\)", r1.text # noqa: W605 - ) - m2 = re.search('submit.*:right;.*(info-0-1)/([0-9]+)/([^"]+)', r1.text) + m1 = re.search(r"javascript:open_ddlbox\('dl_orig', '([0-9]+)', 'orig'\)", r1.text) + m2 = re.search(r'submit.*:right;.*(info-0-1)/([0-9]+)/([^"]+)', r1.text) if m1 is None: break diff --git a/commands/retro.py b/commands/retro.py index c8ac00a..8f54c61 100644 --- a/commands/retro.py +++ b/commands/retro.py @@ -53,7 +53,7 @@ for console in path.iterdir(): if "name" not in metadata: continue - rom_name = rom.stem.split('.')[0].split("(")[0].strip().lower() + rom_name = rom.stem.split(".")[0].split("(")[0].strip().lower() meta_name = metadata["name"].split("(")[0].strip().lower() if rom_name == meta_name and (