This commit is contained in:
恍兮惚兮 2024-05-25 21:54:14 +08:00
parent 9e746507d3
commit 58c4dece90

View File

@ -2560,11 +2560,13 @@ class mdict(cishubase):
# print(keys)
for k in keys:
content = index.mdx_lookup(k)[0]
match = re.match("@@@LINK=(.*)\r\n", content)
if match:
match = match.groups()[0]
content = index.mdx_lookup(match)[0]
while True:#あさひ
match = re.match("@@@LINK=(.*)", content.strip())
if match:
match = match.groups()[0]
content = index.mdx_lookup(match)[0]
else:
break
results.append(self.parseashtml(content))
except:
from traceback import print_exc