mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
repair
This commit is contained in:
parent
9e746507d3
commit
58c4dece90
@ -2560,11 +2560,13 @@ class mdict(cishubase):
|
|||||||
# print(keys)
|
# print(keys)
|
||||||
for k in keys:
|
for k in keys:
|
||||||
content = index.mdx_lookup(k)[0]
|
content = index.mdx_lookup(k)[0]
|
||||||
|
while True:#あさひ
|
||||||
match = re.match("@@@LINK=(.*)\r\n", content)
|
match = re.match("@@@LINK=(.*)", content.strip())
|
||||||
if match:
|
if match:
|
||||||
match = match.groups()[0]
|
match = match.groups()[0]
|
||||||
content = index.mdx_lookup(match)[0]
|
content = index.mdx_lookup(match)[0]
|
||||||
|
else:
|
||||||
|
break
|
||||||
results.append(self.parseashtml(content))
|
results.append(self.parseashtml(content))
|
||||||
except:
|
except:
|
||||||
from traceback import print_exc
|
from traceback import print_exc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user