This commit is contained in:
恍兮惚兮 2024-05-26 15:25:29 +08:00
parent c62bdd8730
commit adaa5e8d9c

View File

@ -2560,13 +2560,10 @@ 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=(.*)", content.strip()) 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