From 4a0add6e0b4620f0a260737d847aff25c0db1cc3 Mon Sep 17 00:00:00 2001 From: chen Date: Wed, 11 Sep 2024 16:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E4=BF=AE=E5=A4=8Dwiki?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/tools/emby_actor_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/tools/emby_actor_info.py b/src/models/tools/emby_actor_info.py index 67bfb6a..a690351 100644 --- a/src/models/tools/emby_actor_info.py +++ b/src/models/tools/emby_actor_info.py @@ -292,7 +292,7 @@ def _get_wiki_detail(url, url_log, actor_info: EMbyActressInfo): signal.show_log_text(" 🔴 页面内容未命中关键词,识别为非女优或导演!") return False - res = re.sub(r'\[\d+\]', '', res) # 替换[1],[2]等注释 + res = re.sub(r'', '', res) # 替换[1],[2]等注释 soup = bs4.BeautifulSoup(res, 'lxml') actor_output = soup.find(class_='mw-parser-output') @@ -309,7 +309,7 @@ def _get_wiki_detail(url, url_log, actor_info: EMbyActressInfo): actor_profile = actor_output.find(name='table', class_=['infobox', 'infobox vcard plainlist']) if actor_profile: att_keys = actor_profile.find_all(scope=["row"]) - att_values = actor_profile.find_all(name='td', style=[''], class_=['infobox-data', 'infobox-data org']) + att_values = actor_profile.find_all(name='td', style=[''], colspan=False) bday = actor_output.find(class_='bday') bday = '(%s)' % bday.get_text('', strip=True) if bday else '' if att_keys and att_values: