From 642aac26e9d006da3becf31fca09738b409bdad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 2 Jan 2025 13:18:01 +0800 Subject: [PATCH] . --- py/LunaTranslator/cishu/weblio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/LunaTranslator/cishu/weblio.py b/py/LunaTranslator/cishu/weblio.py index a84076fa..21b2b9a5 100644 --- a/py/LunaTranslator/cishu/weblio.py +++ b/py/LunaTranslator/cishu/weblio.py @@ -15,6 +15,8 @@ class weblio(cishubase): html = requests.get(url, proxies=self.proxy).text head = simplehtmlparser_all(html, "div", '
') content = simplehtmlparser_all(html, "div", '
') + if not content: + return collect = [] for i, xx in enumerate(head): xx = re.sub('src="//(.*?)"', 'src="https://\\1"', xx + content[i])