From 15de2eca7b2689070e80ff980bc766cab9c2ac55 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Fri, 14 Feb 2014 14:22:58 +0100 Subject: artwork: try to substitute album name for artist, if artist is missing or cover not found (this allows to load some game music covers from lastfm) --- plugins/artwork/artwork.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/artwork/artwork.c') diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 35bcbedb..5362a5df 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -1264,6 +1264,10 @@ get_album_art (const char *fname, const char *artist, const char *album, int siz artist = ""; } + if (*album && !(*artist)) { + artist = album; + } + if (!*artist || !*album) { trace ("artist or album is empty, give up\n"); -- cgit v1.2.3