I forgot to comment in the last commit, but now all is commented :D
This commit is contained in:
parent
130364a708
commit
1ab02cad0d
|
@ -18,6 +18,7 @@ def ocr(filename):
|
||||||
def namecleaner(filename):
|
def namecleaner(filename):
|
||||||
print("filenameis "+filename)
|
print("filenameis "+filename)
|
||||||
filename = "_".join(filename.split())
|
filename = "_".join(filename.split())
|
||||||
|
filename = filename.replace("__","_")
|
||||||
filename = filename.replace(" ","")
|
filename = filename.replace(" ","")
|
||||||
filename = filename.replace("\n","")
|
filename = filename.replace("\n","")
|
||||||
filename = filename.replace("<","")
|
filename = filename.replace("<","")
|
||||||
|
|
Loading…
Reference in New Issue