diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-14 14:22:58 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-14 14:22:58 +0100 |
commit | 15de2eca7b2689070e80ff980bc766cab9c2ac55 (patch) | |
tree | a6794dd86f2b9d9c026d649a28ce43ee2a8a945b /plugins/artwork/artwork.c | |
parent | 7a6f3f9e8b016c4c2b0fd2a5e30e8850465e3742 (diff) |
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)
Diffstat (limited to 'plugins/artwork/artwork.c')
-rw-r--r-- | plugins/artwork/artwork.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |