减少成功信息文件路径刷屏,仅写入.nfo时显示完全路径

This commit is contained in:
lededev
2022-04-10 05:39:57 +08:00
parent 3e3ff3cfb3
commit e951429ec0
2 changed files with 13 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ import logging
import os
import config
import importlib
from pathlib import Path
from PIL import Image
import shutil
from ADC_function import file_not_exist_or_empty
@@ -72,13 +73,13 @@ def cutImage(imagecut, path, fanart_path, poster_path):
else: # 如果等于2/3
img2 = img
img2.save(fullpath_poster)
print('[+]Image Cutted! ' + fullpath_poster)
print(f"[+]Image Cutted! {Path(fullpath_poster).name}")
except Exception as e:
print(e)
print('[-]Cover cut failed!')
elif imagecut == 0: # 复制封面
shutil.copyfile(fullpath_fanart, fullpath_poster)
print('[+]Image Copyed! ' + fullpath_poster)
print(f"[+]Image Copyed! {Path(fullpath_poster).name}")
def face_center(filename, model):