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

Added more title cleanup

This commit is contained in:
Krateng 2019-12-14 16:02:39 +01:00
parent ab28d00052
commit e856130e19
2 changed files with 5 additions and 0 deletions

View File

@ -121,6 +121,10 @@ class CleanerAgent:
t = re.sub(r" \(originally by .*?\)","",t) t = re.sub(r" \(originally by .*?\)","",t)
t = re.sub(r" \(.*?Remaster.*?\)","",t) t = re.sub(r" \(.*?Remaster.*?\)","",t)
for s in settings.get_settings("REMOVE_FROM_TITLE"):
if s in t:
t = t.replace(s,"").strip()
return t.strip() return t.strip()
def parseTitleForArtists(self,t): def parseTitleForArtists(self,t):

View File

@ -27,6 +27,7 @@ TRACK_SEARCH_PROVIDER = None
DB_CACHE_SIZE = 8192 # how many MB on disk each database cache should have available. DB_CACHE_SIZE = 8192 # how many MB on disk each database cache should have available.
INVALID_ARTISTS = ["[Unknown Artist]","Unknown Artist","Spotify"] INVALID_ARTISTS = ["[Unknown Artist]","Unknown Artist","Spotify"]
REMOVE_FROM_TITLE = ["(Original Mix)","(Radio Edit)","(Album Version)"]
[Local Images] [Local Images]