1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00

some notes

This commit is contained in:
Escartem
2025-01-13 14:48:04 +01:00
parent 7ef4dea067
commit 046a1f949f
2 changed files with 16 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import os
import io
import json
import wwise
import tempfile
import wavescan
@@ -159,9 +160,22 @@ class WwiseExtract:
filename = f"{filename} (hdiff)"
files = [*files[0], *files[1]]
# in case of manual use of mapping, use this
# load json here
# handle = open("banks.json", "r")
# banks = json.loads(handle.read())
# handle.close()
for file in files:
if mapper is not None:
key = mapper.get_key(file[0].split(".")[0])
# and override the method with a manual dict lookup
# _id = file[0].split(".")[0]
# if _id in list(banks["banks"].keys()):
# key = [banks["banks"][_id], ""]
else:
key = None