1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00
This commit is contained in:
Escartem
2023-10-28 13:14:04 +02:00
parent 317335f0ca
commit f1ebe885f7
2 changed files with 4 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ cwd = os.getcwd()
path = lambda path: os.path.join(cwd, path)
call = lambda args: subprocess.call(args, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
spinner = Halo(text="spinner", spinner={'interval': 100, 'frames': ['', '', '', '', '', '']}, placement="right")
skips = "000111111" # used for debugging
skips = "000000000" # used for debugging
# 1 - original extract
# 2 - patch
@@ -234,13 +234,6 @@ def main():
new_files = [f"{f.split('.')[0]}.mp3" for f in new_files]
changed_files = [f"{f.split('.')[0]}.mp3" for f in changed_files]
# todo: something is wrong here with extraction of hdiff, it's missing files and not extracting everything ?
# actually it may not, the old method was just naming them by increasing numbers, one change and it offset all of them
# making two of the same nums to be different because of offset. The old method may actually extract unwanted stuff :O
# print(all_files)
# print(new_files)
# print(changed_files)
#########################
### 7 - Map filenames ###
#########################
@@ -311,7 +304,6 @@ def main():
os.rename("temp/map", f"temp/{filename}")
shutil.move(f"temp/{filename}", f"output/{filename}")
# todo: final cleanup, will get deleted anyway after so idk yet
spinner.stop()
print(f"[{curr}/{steps}] Cleaning up")