From 9c1baef0b7bd83d7e7f7ced01bf6eb2be4181eb1 Mon Sep 17 00:00:00 2001 From: lededev Date: Mon, 11 Apr 2022 00:18:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E8=AE=BA=E6=9C=89=E7=A0=81=E6=97=A0?= =?UTF-8?q?=E7=A0=81=E5=9D=87=E4=BC=98=E5=85=88=E9=87=87=E4=BF=A1=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core.py b/core.py index ed0ad51..29b2f58 100644 --- a/core.py +++ b/core.py @@ -705,8 +705,9 @@ def core_main(movie_path, number_th, oCC): # 判断是否无码 uncensored = 1 if is_uncensored(number) else 0 - if json_data.get('无码'): - uncensored = 1 + unce = json_data.get('无码') + if type(unce) is bool: + uncensored = 1 if unce else 0 if '流出' in movie_path or 'uncensored' in movie_path: liuchu = '流出'