无码检测移入number_parser.py并扩充识别能力
This commit is contained in:
@@ -566,17 +566,6 @@ f"https://{gsite}/translate_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl={t
|
||||
return trans_result
|
||||
|
||||
|
||||
# ========================================================================是否为无码
|
||||
def is_uncensored(number):
|
||||
if re.match('^\d{4,}', number) or re.match('n\d{4}', number) or 'HEYZO' in number.upper():
|
||||
return True
|
||||
configs = config.getInstance().get_uncensored()
|
||||
prefix_list = str(configs).split(',')
|
||||
for pre in prefix_list:
|
||||
if pre.upper() in number.upper():
|
||||
return True
|
||||
return False
|
||||
|
||||
# 从浏览器中导出网站登录验证信息的cookies,能够以会员方式打开游客无法访问到的页面
|
||||
# 示例: FC2-755670 url https://javdb9.com/v/vO8Mn
|
||||
# json 文件格式
|
||||
|
||||
Reference in New Issue
Block a user