fix
This commit is contained in:
parent
850e0283d6
commit
122d54c618
6
test.py
6
test.py
@ -266,8 +266,8 @@ if __name__ == "__main__":
|
||||
# comicInfo().update_comicinfo_cbz("")
|
||||
#cbz_path = "/Users/cc/Documents/Dev/WorkSpace/VSCodeProjects/NewComicDownloader/CBZ/rm_comic/福利女姊姊/第1话 福利女姊姊.CBZ"
|
||||
|
||||
dir_path = "CBZ/rm_comic"
|
||||
#dir_path = "/mnt/Comics/CBZ/rm_comic"
|
||||
#dir_path = "CBZ/rm_comic"
|
||||
dir_path = "/mnt/Comics/CBZ/rm_comic"
|
||||
for dir in os.listdir(dir_path):
|
||||
c_dir = os.path.join(dir_path, dir)
|
||||
if os.path.isdir(c_dir):
|
||||
@ -277,7 +277,7 @@ if __name__ == "__main__":
|
||||
create_time = time.localtime(os.path.getctime(file)) # 注意:st_birthtime 在Linux/MacOS中可用,但不是所有系统都支持
|
||||
# 格式化时间
|
||||
formatted_time = time.strftime('%Y%m%d', create_time)
|
||||
if int(formatted_time) > 20250204:
|
||||
if int(formatted_time) < 20250204:
|
||||
print(f"{file} 文件创建时间:", formatted_time)
|
||||
comicInfo().update_comicinfo_cbz(file)
|
||||
#if size < 3000:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user