1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Case is now ignored when building track titles and artist names

This commit is contained in:
Krateng
2018-12-21 18:22:58 +01:00
parent 1e346f7d0e
commit 30881099bf
3 changed files with 21 additions and 6 deletions

View File

@@ -28,7 +28,10 @@ class CleanerAgent:
return (list(set(artists)),title)
def removespecial(self,s):
return s.replace("\t","").replace("","").replace("\n","")
s = s.replace("\t","").replace("","").replace("\n","")
s = re.sub(" +"," ",s)
return s
# if an artist appears in any created rule, we can assume that artist is meant to exist and be spelled like that
def confirmedReal(self,a):