From cf072e79d1c352e1c271bf98923a4d7905f60ca0 Mon Sep 17 00:00:00 2001 From: lededev Date: Fri, 8 Oct 2021 11:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=8E=92=E7=89=88=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8Cnumber=E6=94=BE=E5=9C=A8=E5=B7=A6=E8=BE=B9?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E4=BD=8D=E7=BD=AE=EF=BC=8C=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E7=95=99=E7=99=BD=E4=BB=A5=E4=BE=BF=E8=BF=85?= =?UTF-8?q?=E9=80=9F=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AV_Data_Capture.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/AV_Data_Capture.py b/AV_Data_Capture.py index 19a3212..6ab00ad 100755 --- a/AV_Data_Capture.py +++ b/AV_Data_Capture.py @@ -306,7 +306,7 @@ def create_data_and_move(file_path: str, c: config.Config, debug): file_path = os.path.abspath(file_path) if debug == True: - print(f"[!]Making Data for [{file_path}], the number is [{n_number}]") + print(f"[!] [{n_number}] As Number making data for '{file_path}'") if n_number: core_main(file_path, n_number, c) else: @@ -314,7 +314,7 @@ def create_data_and_move(file_path: str, c: config.Config, debug): print("[*]======================================================") else: try: - print(f"[!]Making Data for [{file_path}], the number is [{n_number}]") + print(f"[!] [{n_number}] As Number making data for '{file_path}'") if n_number: core_main(file_path, n_number, c) else: @@ -333,8 +333,11 @@ def create_data_and_move(file_path: str, c: config.Config, debug): def create_data_and_move_with_custom_number(file_path: str, c: config.Config, custom_number): file_name = os.path.basename(file_path) try: - print("[!]Making Data for [{}], the number is [{}]".format(file_path, custom_number)) - core_main(file_path, custom_number, c) + print("[!] [{1}] As Number making data for '{0}'".format(file_path, custom_number)) + if custom_number: + core_main(file_path, custom_number, c) + else: + print("[-] number empty ERROR") print("[*]======================================================") except Exception as err: print("[-] [{}] ERROR:".format(file_path)) @@ -372,6 +375,7 @@ if __name__ == '__main__': if conf.update_check(): check_update(version) + print(f"[+]Load Config file '{conf.ini_path}'.") if conf.debug(): print('[+]Enable debug') if conf.soft_link(): @@ -408,7 +412,7 @@ if __name__ == '__main__': for movie_path in movie_list: # 遍历电影列表 交给core处理 count = count + 1 percentage = str(count / int(count_all) * 100)[:4] + '%' - print('[!] - ' + percentage + ' [' + str(count) + '/' + count_all + '] -') + print('[!] {:>30}{:>21}'.format('- ' + percentage + ' [' + str(count) + '/' + count_all + '] -', time.strftime("%H:%M:%S"))) create_data_and_move(movie_path, conf, conf.debug()) if count >= stop_count: print("[!]Stop counter triggered!")