1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-13 05:31:03 +08:00
This commit is contained in:
Escartem
2023-10-04 15:37:40 +02:00
parent bcac3ba467
commit 13790ef6de

View File

@@ -35,6 +35,11 @@ def main():
hdiff_files = [f for f in os.listdir("audio") if f.endswith(".pck") and os.path.exists(f"patch/{f}.hdiff")] hdiff_files = [f for f in os.listdir("audio") if f.endswith(".pck") and os.path.exists(f"patch/{f}.hdiff")]
alone_files = [f for f in os.listdir("audio") if f.endswith(".pck") and not os.path.exists(f"patch/{f}.hdiff")] alone_files = [f for f in os.listdir("audio") if f.endswith(".pck") and not os.path.exists(f"patch/{f}.hdiff")]
files = [*hdiff_files, *alone_files] files = [*hdiff_files, *alone_files]
if len(files) == 0:
print("No files found !")
return
print(f"{len(files)} file(s) to extract") print(f"{len(files)} file(s) to extract")
iteration = 0 iteration = 0
@@ -277,6 +282,7 @@ def main():
print(e) print(e)
# all files processed # all files processed
if os.path.exists("temp"):
shutil.rmtree("temp") shutil.rmtree("temp")
print("Done extracting everything !") print("Done extracting everything !")