支持 -U 匹配破解 -UC匹配 破解+字幕

This commit is contained in:
todoXu
2023-09-07 00:24:56 +08:00
parent fbc741521d
commit ee4ea11706
2 changed files with 24 additions and 4 deletions

12
core.py
View File

@@ -872,6 +872,18 @@ def core_main(movie_path, number_th, oCC, specified_source=None, specified_url=N
cn_sub = True
c_word = '-C' # 中文字幕影片后缀
if re.search(r'[-_]UC(\.\w+$|-\w+)', movie_path,
re.I):
cn_sub = True
c_word = '-UC' #
hack = True
hack_word = "-UC"
if re.search(r'[-_]U(\.\w+$|-\w+)', movie_path,
re.I):#
hack = True
hack_word = "-U"
# 判断是否无码
unce = json_data.get('无码')
uncensored = int(unce) if isinstance(unce, bool) else int(is_uncensored(number))