diff --git a/data/interfaces/default/artist.html b/data/interfaces/default/artist.html index a19b1146..638044ea 100644 --- a/data/interfaces/default/artist.html +++ b/data/interfaces/default/artist.html @@ -70,7 +70,7 @@ Name Date Type - Score + Metacritic Status Have Bitrate diff --git a/data/interfaces/default/css/style.css b/data/interfaces/default/css/style.css index 0fd4a4ea..e4922d60 100644 --- a/data/interfaces/default/css/style.css +++ b/data/interfaces/default/css/style.css @@ -1445,6 +1445,7 @@ div#artistheader h2 a { #album_table td#albumname, #album_table td#reldate, #album_table td#type, +#album_table td#score, #track_table td#duration, #upcoming_table td#select, #upcoming_table td#status, @@ -1455,6 +1456,7 @@ div#artistheader h2 a { } #album_table td#status, #album_table td#bitrate, +#album_table td#score, #album_table td#albumformat, #album_table td#wantlossless { font-size: 13px; diff --git a/headphones/metacritic.py b/headphones/metacritic.py index 5df3d601..f6fe9289 100644 --- a/headphones/metacritic.py +++ b/headphones/metacritic.py @@ -26,11 +26,10 @@ def update(artist_name,release_groups): # We could just do a search, then take the top result, but at least this will # cut down on api calls. If it's ineffective then we'll switch to search - replacements = {" & " : " "} - pattern = re.compile(r'\b(' + '|'.join(replacements.keys()) + r')\b') - mc_artist_name = pattern.sub(lambda x: replacements[x.group()], artist_name) + replacements = {" & " : " ", "." : ""} + mc_artist_name = helpers.replace_all(artist_name.lower(),replacements) - mc_artist_name = artist_name.lower().replace(" ","-") + mc_artist_name = mc_artist_name.replace(" ","-") url = "http://www.metacritic.com/person/" + mc_artist_name + "?filter-options=music&sort_options=date&num_items=100"