mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-07 21:00:21 +08:00
update change_img_md5
This commit is contained in:
+1
-2
@@ -400,7 +400,7 @@ def change_pixiv_image_links(
|
|||||||
return url
|
return url
|
||||||
|
|
||||||
|
|
||||||
def change_img_md5(path_file) -> bool:
|
def change_img_md5(path_file: str) -> bool:
|
||||||
"""
|
"""
|
||||||
说明:
|
说明:
|
||||||
改变图片MD5
|
改变图片MD5
|
||||||
@@ -410,7 +410,6 @@ def change_img_md5(path_file) -> bool:
|
|||||||
try:
|
try:
|
||||||
with open(path_file, "a") as f:
|
with open(path_file, "a") as f:
|
||||||
f.write(str(int(time.time() * 1000)))
|
f.write(str(int(time.time() * 1000)))
|
||||||
f.close()
|
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
Reference in New Issue
Block a user