summaryrefslogtreecommitdiff
path: root/plugins/artwork
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/artwork')
-rw-r--r--plugins/artwork/artwork.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c
index facfd486..44aa68dc 100644
--- a/plugins/artwork/artwork.c
+++ b/plugins/artwork/artwork.c
@@ -1144,8 +1144,21 @@ fetcher_thread (void *none)
got_pic = 1;
}
}
- if (!got_pic && artwork_enable_lfm && !fetch_from_lastfm (param->artist, param->album, cache_path)) {
- got_pic = 1;
+ if (!got_pic && artwork_enable_lfm) {
+ if (!fetch_from_lastfm (param->artist, param->album, cache_path)) {
+ got_pic = 1;
+ }
+ else {
+ // try to fix parentheses
+ char *fixed_alb = strdupa (param->album);
+ char *openp = strchr (fixed_alb, '(');
+ if (openp && openp != fixed_alb) {
+ *openp = 0;
+ if (!fetch_from_lastfm (param->artist, fixed_alb, cache_path)) {
+ got_pic = 1;
+ }
+ }
+ }
}
if (!got_pic && artwork_enable_aao && !fetch_from_albumart_org (param->artist, param->album, cache_path)) {
got_pic = 1;