change:添加备注

This commit is contained in:
雨霖铃 2025-08-31 16:46:18 +08:00
parent e7b26f7e04
commit 4d49757cee
2 changed files with 4 additions and 10 deletions

5
.gitignore vendored
View File

@ -1,2 +1,5 @@
.venv
.idea
.idea
/build/
/dist/
/ncmTranslator.spec

View File

@ -119,9 +119,6 @@ if __name__ == '__main__':
rootdir = fspath(Path(__file__).parent.resolve())
print('当前需要处理的文件夹路径: ' + rootdir)
start_time = time.time()
print('开始处理 ' + time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
file_list = os.listdir(rootdir)
tasks = []
for file in file_list:
@ -137,13 +134,7 @@ if __name__ == '__main__':
for future in as_completed(futures):
try:
result_path = future.result()
# ✅ 在进度条上方显示文件名称
tqdm.write(f"转码完成: {result_path}")
except Exception as e:
logging.exception("转码任务出错", exc_info=e)
finally:
pbar.update(1)
end_time = time.time()
print('全部文件处理完成 ' + time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
print('处理时间:', end_time - start_time)