预缓存实用程序改动
This commit is contained in:
@@ -21,8 +21,8 @@ def proc_file(path: Path):
|
||||
c = 0
|
||||
for i in nu.nucleons:
|
||||
c += 1
|
||||
print(f"预缓存 [{nu.name}] ({c}/{len(nu)}): {i['content']}")
|
||||
precache(i['content'])
|
||||
print(f"预缓存 [{nu.name}] ({c}/{len(nu)}): {i['content'].replace('/', '')}")
|
||||
precache(i['content'].replace('/', ''))
|
||||
|
||||
|
||||
def walk(path_str: str):
|
||||
@@ -49,4 +49,4 @@ if __name__ == "__main__":
|
||||
walk("./nucleon")
|
||||
elif choice == "C":
|
||||
shutil.rmtree("./cache/voice", ignore_errors=True)
|
||||
print("缓存已清空")
|
||||
print("缓存已清空")
|
||||
|
Reference in New Issue
Block a user