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

Better metadata grabbing and caching

This commit is contained in:
Krateng
2018-12-17 15:10:10 +01:00
parent 6be0dfd25b
commit 78b1937044
7 changed files with 117 additions and 29 deletions

View File

@@ -38,6 +38,12 @@ class CleanerAgent:
if a.strip() == "":
return []
if a.strip() in self.rules_notanartist:
return []
if " performing " in a.lower():
return self.parseArtists(re.split(" [Pp]erforming",a)[0])
if a.strip() in self.rules_belongtogether:
return [a.strip()]
if a.strip() in self.rules_replaceartist: