ret = []
ldiv = afind(afind(d, "div", id="maincontent"), "div", "lst")
for link in ldiv("a", "HOVERLINE"):
- mn = ""
+ rawname = ""
for el in link.font:
if isinstance(el, str):
- mn += el.strip()
+ rawname += el.strip()
+ mn = rawname.lower()
mn = s(mn, "^a\s+", "")
+ mn = mn.replace("\u014d", "ou")
+ mn = mn.replace("\u016b", "uu")
if mn.lower().startswith(name.lower()):
m = linkpat.match(link["href"])
if not m:
raise incompatible()
found = anime.byid(int(m.groups()[0]))
- found.rawname = mn
+ found.rawname = rawname
ret.append(found)
return ret