mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-13 05:31:03 +08:00
fixes
This commit is contained in:
@@ -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 !")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user