💚 Fix flake8 on anime-ultime
dl / lint (push) Successful in 1m5s Details
dl / docker (push) Successful in 41s Details

This commit is contained in:
Michel Roux 2024-02-23 15:10:48 +01:00
parent 694c1722f4
commit bb376df09f
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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 (