Skip to content

Commit

Permalink
fix: #138 修复title为空时从标题移除女优名功能异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xi-mad authored and Yuukiy committed Nov 30, 2023
1 parent a0d874c commit 33743eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_scan_dir(cfg_scan_dir):

def remove_trail_actor_in_title(title:str, actors:list) -> str:
"""寻找并移除标题尾部的女优名"""
if not actors:
if not (actors and title):
return title
# 目前使用分隔符白名单来做检测(担心按Unicode范围匹配误伤太多),考虑尽可能多的分隔符
delimiters = '-xX &·,; &・,;'
Expand Down

0 comments on commit 33743eb

Please sign in to comment.