This commit is contained in:
caiwx86 2023-01-16 03:11:55 +08:00
parent 74abe11880
commit c7ccec4152

View File

@ -96,8 +96,8 @@ class CBZUtils:
if os.path.exists(filepath): if os.path.exists(filepath):
ctime = os.path.getmtime(filepath) ctime = os.path.getmtime(filepath)
str_ctime = datetime.fromtimestamp(int(ctime)) str_ctime = datetime.fromtimestamp(int(ctime))
file_ctime = str(str_ctime.year)+"{:0>2d}".format(str_ctime.month)+"{:0>2d}".format(str_ctime.day) file_ctime = str(str_ctime.year)+"{:0>2d}".format(str_ctime.month)+"{:0>2d}".format(str_ctime.day)+"{:0>2d}".format(str_ctime.hour)
c_ctime = 20230117 c_ctime = 2023011603
if int(file_ctime) < c_ctime: if int(file_ctime) < c_ctime:
return None return None
else: else: