update change_img_md5

This commit is contained in:
yajiwa 2022-06-13 10:59:29 +08:00
parent 6e18379597
commit 830103b9d5

View File

@ -400,7 +400,7 @@ def change_pixiv_image_links(
return url
def change_img_md5(path_file) -> bool:
def change_img_md5(path_file: str) -> bool:
"""
说明
改变图片MD5
@ -410,7 +410,6 @@ def change_img_md5(path_file) -> bool:
try:
with open(path_file, "a") as f:
f.write(str(int(time.time() * 1000)))
f.close()
return True
except:
return False