From efd1152d560662e61507868fd4efc19677c5ea47 Mon Sep 17 00:00:00 2001 From: Yoshiko2 <42309414+yoshiko2@users.noreply.github.com> Date: Sat, 18 Jul 2020 02:36:06 +0800 Subject: [PATCH] Update 3.5.2 --- AV_Data_Capture.py | 42 +++++++++++++++++++++--------------------- update_check.json | 4 ++-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/AV_Data_Capture.py b/AV_Data_Capture.py index 4c84ce6..4e13766 100755 --- a/AV_Data_Capture.py +++ b/AV_Data_Capture.py @@ -66,31 +66,31 @@ def create_data_and_move(file_path: str, c: config.Config): # Normalized number, eg: 111xxx-222.mp4 -> xxx-222.mp4 n_number = get_number(file_path) - print("[!]Making Data for [{}], the number is [{}]".format(file_path, n_number)) - core_main(file_path, n_number, c) - print("[*]======================================================") + # print("[!]Making Data for [{}], the number is [{}]".format(file_path, n_number)) + # core_main(file_path, n_number, c) + # print("[*]======================================================") - # try: - # print("[!]Making Data for [{}], the number is [{}]".format(file_path, n_number)) - # core_main(file_path, n_number, c) - # print("[*]======================================================") - # except Exception as err: - # print("[-] [{}] ERROR:".format(file_path)) - # print('[-]', err) - # - # if c.soft_link(): - # print("[-]Link {} to failed folder".format(file_path)) - # os.symlink(file_path, str(os.getcwd()) + "/" + conf.failed_folder() + "/") - # else: - # try: - # print("[-]Move [{}] to failed folder".format(file_path)) - # shutil.move(file_path, str(os.getcwd()) + "/" + conf.failed_folder() + "/") - # except Exception as err: - # print('[!]', err) + try: + print("[!]Making Data for [{}], the number is [{}]".format(file_path, n_number)) + core_main(file_path, n_number, c) + print("[*]======================================================") + except Exception as err: + print("[-] [{}] ERROR:".format(file_path)) + print('[-]', err) + + if c.soft_link(): + print("[-]Link {} to failed folder".format(file_path)) + os.symlink(file_path, str(os.getcwd()) + "/" + conf.failed_folder() + "/") + else: + try: + print("[-]Move [{}] to failed folder".format(file_path)) + shutil.move(file_path, str(os.getcwd()) + "/" + conf.failed_folder() + "/") + except Exception as err: + print('[!]', err) if __name__ == '__main__': - version = '3.5' + version = '3.5.2' # Parse command line args single_file_path, config_file, auto_exit = argparse_function() diff --git a/update_check.json b/update_check.json index 402a182..8a8516f 100644 --- a/update_check.json +++ b/update_check.json @@ -1,5 +1,5 @@ { - "version": "3.5.1", - "version_show": "3.5.1", + "version": "3.5.2", + "version_show": "3.5.2", "download": "https://github.com/yoshiko2/AV_Data_Capture/releases" }