move cache image

This commit is contained in:
caiwx86 2025-02-04 02:51:01 +08:00
parent dd74704d11
commit f43de7cec5

View File

@ -126,7 +126,7 @@ class BaseSite(ABC):
if f_item.md5 == cache_cover_item.md5: is_update += 1
if is_update == 0:
new_cover = { 'path' : FileNaming.cover_format_path(cover_img["path"]) }
shutil.copy(cache_cover["path"], new_cover["path"])
shutil.move(cache_cover["path"], new_cover["path"])
list_cover.append(CoverItem(**new_cover))
except Exception:
raise exit("Cover 检测异常")