don't call fix_asian_name for now

This commit is contained in:
j 2017-08-03 15:28:35 +02:00
parent 35198f8787
commit 1992e5bc5c

View file

@ -35,13 +35,13 @@ def quote_string(string):
return quote(string).replace('_', '%09').replace('%20', '_')
def fix_names(m):
name = fix_asian_name(m.group(2))
#name = fix_asian_name(m.group(2))
name = m.group(2)
return '<a href="/name=%s">%s</a>' % (quote_string(name.encode('utf-8')), name)
def fix_titles(m):
return '<a href="/title=%s">%s</a>' % (
quote_string(m.group(2).encode('utf-8')), m.group(2)
)
title = m.group(2)
return '<a href="/title=%s">%s</a>' % (quote_string(title.encode('utf-8')), title)
def fix_links(t):
t = re.sub('<a href="(/name/.*?)">(.*?)</a>', fix_names, t)