Commit 9a08c7beb32df9c5341fa130ba6568fc6637d130
1 parent
66e4279a77
Exists in
master
Fix issue
Showing 1 changed file with 3 additions and 5 deletions Side-by-side Diff
volia/skyrim.py
... | ... | @@ -18,17 +18,15 @@ |
18 | 18 | language = None |
19 | 19 | if splited[0] == "en-us": |
20 | 20 | language = "english" |
21 | - elif splited[0] == "": | |
21 | + elif splited[0] == "fr-fr": | |
22 | 22 | language = "french" |
23 | - print(splited[0]) | |
24 | - print(language) | |
25 | 23 | |
26 | 24 | # Create wav filename |
27 | 25 | splited3 = splited[3].split(".") |
28 | - wav = "-".join(splited3) + ".wav" | |
26 | + wav = ("-".join(splited3) + ".wav").replace(" ", "") | |
29 | 27 | |
30 | 28 | # Create full path |
31 | - full_path = os.path.join(language, "wave-audio", wav) | |
29 | + full_path = os.path.join(root, language, "wave-audio", wav) | |
32 | 30 | |
33 | 31 | f.write(f"{id_} {full_path}\n") |
34 | 32 | pass |