💚 Fix flake8 on anime-ultime
This commit is contained in:
parent
694c1722f4
commit
bb376df09f
@ -17,10 +17,8 @@ root_url = "http://www.anime-ultime.net"
|
|||||||
|
|
||||||
while nextHop:
|
while nextHop:
|
||||||
r1 = requests.get(url)
|
r1 = requests.get(url)
|
||||||
m1 = re.search(
|
m1 = re.search(r"javascript:open_ddlbox\('dl_orig', '([0-9]+)', 'orig'\)", r1.text)
|
||||||
"javascript:open_ddlbox\('dl_orig', '([0-9]+)', 'orig'\)", r1.text # noqa: W605
|
m2 = re.search(r'submit.*:right;.*(info-0-1)/([0-9]+)/([^"]+)', r1.text)
|
||||||
)
|
|
||||||
m2 = re.search('submit.*:right;.*(info-0-1)/([0-9]+)/([^"]+)', r1.text)
|
|
||||||
|
|
||||||
if m1 is None:
|
if m1 is None:
|
||||||
break
|
break
|
||||||
|
@ -53,7 +53,7 @@ for console in path.iterdir():
|
|||||||
if "name" not in metadata:
|
if "name" not in metadata:
|
||||||
continue
|
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()
|
meta_name = metadata["name"].split("(")[0].strip().lower()
|
||||||
|
|
||||||
if rom_name == meta_name and (
|
if rom_name == meta_name and (
|
||||||
|
Loading…
Reference in New Issue
Block a user