Vokabeln erweitert. Neue MP3s.
This commit is contained in:
@@ -16,8 +16,11 @@ REPLACEMENTS = [
|
||||
|
||||
name_new = ""
|
||||
i = 1
|
||||
debug = False
|
||||
|
||||
def compare(s1: str, s2: str) -> bool:
|
||||
if debug:
|
||||
print (s1, " ----> ", s2)
|
||||
if s1.endswith(" "):
|
||||
s1 = s1[:-1]
|
||||
if s2.endswith(" "):
|
||||
@@ -28,6 +31,11 @@ def compare(s1: str, s2: str) -> bool:
|
||||
|
||||
|
||||
file = open(sys.argv[1])
|
||||
print(len(sys.argv))
|
||||
if len(sys.argv) == 3:
|
||||
debug = False
|
||||
else:
|
||||
debug = sys.argv[3]
|
||||
for line in file:
|
||||
line = line[:-1]
|
||||
for old, new in REPLACEMENTS:
|
||||
|
||||
Reference in New Issue
Block a user