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:
parent
ab28d00052
commit
e856130e19
@ -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):
|
||||||
|
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user