diff --git a/core.py b/core.py index 39f4276..51dcc66 100644 --- a/core.py +++ b/core.py @@ -652,8 +652,7 @@ def core_main_no_net_op(movie_path, number): full_nfo = Path(path) / f"{prestr}{part}.nfo" if full_nfo.is_file(): - nfo = full_nfo.read_text(encoding='utf-8') - if nfo.find(r'无码'): + if full_nfo.read_text(encoding='utf-8').find(r'无码') >= 0: uncensored = 1 else: return