Skip to content

Commit

Permalink
修复madouqu番号获取
Browse files Browse the repository at this point in the history
修复madouqu番号获取
  • Loading branch information
anyingxiuluo authored and sqzw-x committed Jul 22, 2024
1 parent 7efda28 commit cc3bf58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/models/crawlers/madouqu.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def get_detail_info(html, number, file_path):
actor = ''
number = ''
for i, t in enumerate(detail_info):
if '番號' in t:
temp_number = re.findall(r'番號\s*:\s*(.+)\s*', t)
# if '番號' in t:
# temp_number = re.findall(r'番號\s*:\s*(.+)\s*', t)
if re.search(r'番号|番號', t):
temp_number = re.findall(r'(?:番号|番號)\s*:\s*(.+)\s*', t)
number = temp_number[0] if temp_number else ''
if '片名' in t:
temp_title = re.findall(r'片名\s*:\s*(.+)\s*', t)
Expand Down

0 comments on commit cc3bf58

Please sign in to comment.