diff --git a/core.py b/core.py index b81d649..3c97ed2 100755 --- a/core.py +++ b/core.py @@ -435,7 +435,7 @@ def image_download(cover, number, leak_word, c_word, path, conf: config.Config, shutil.copyfile(path + '/' + number + leak_word + c_word + '-fanart.jpg',path + '/' + number + leak_word + c_word + '-thumb.jpg') -def print_files(path, leak_word, c_word, naming_rule, part, cn_sub, json_data, filepath, failed_folder, tag, actor_list, liuchu): +def print_files(path, leak_word, c_word, naming_rule, part, cn_sub, json_data, filepath, failed_folder, tag, actor_list, liuchu, uncensored): title, studio, year, outline, runtime, director, actor_photo, release, number, cover, trailer, website, series, label = get_info(json_data) try: @@ -469,19 +469,26 @@ def print_files(path, leak_word, c_word, naming_rule, part, cn_sub, json_data, f print(" 中文字幕", file=code) if liuchu == '流出': print(" 流出", file=code) + if uncensored == 1: + print(" 无码", file=code) try: for i in tag: print(" " + i + "", file=code) print(" " + series + "", file=code) except: aaaaa = '' + if cn_sub == '1': + print(" 中文字幕", file=code) + if liuchu == '流出': + print(" 流出", file=code) + if uncensored == 1: + print(" 无码", file=code) try: for i in tag: print(" " + i + "", file=code) + print(" " + series + "", file=code) except: aaaaaaaa = '' - if cn_sub == '1': - print(" 中文字幕", file=code) print(" " + number + "", file=code) print(" " + release + "", file=code) print(" " + cover + "", file=code) @@ -764,7 +771,7 @@ def core_main(file_path, number_th, conf: config.Config): cutImage(imagecut, path, number, leak_word, c_word) # 打印文件 - print_files(path, leak_word, c_word, json_data.get('naming_rule'), part, cn_sub, json_data, filepath, conf.failed_folder(), tag, json_data.get('actor_list'), liuchu) + print_files(path, leak_word, c_word, json_data.get('naming_rule'), part, cn_sub, json_data, filepath, conf.failed_folder(), tag, json_data.get('actor_list'), liuchu, uncensored) # 移动文件 paste_file_to_folder(filepath, path, number, leak_word, c_word, conf)