summaryrefslogtreecommitdiff
path: root/plugins/notify
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-10-19 20:47:08 +0200
committerGravatar waker <wakeroid@gmail.com>2012-10-19 20:47:08 +0200
commit59cd9c4de0ebdd2a53f36c0804a3b5191d64c5cb (patch)
treeb54fad03750c8299d96546b5e085abb4b949ac1a /plugins/notify
parentd9ddcfb0cc68b290e9f6d8c5c6b1babf969e5337 (diff)
fixed cover art notification display for tracks with empty album name
Diffstat (limited to 'plugins/notify')
-rw-r--r--plugins/notify/notify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/notify/notify.c b/plugins/notify/notify.c
index d958191c..a54dd48e 100644
--- a/plugins/notify/notify.c
+++ b/plugins/notify/notify.c
@@ -228,6 +228,9 @@ static void show_notification (DB_playItem_t *track) {
const char *album = deadbeef->pl_find_meta (track, "album");
const char *artist = deadbeef->pl_find_meta (track, "artist");
const char *fname = deadbeef->pl_find_meta (track, ":URI");
+ if (!album || !*album) {
+ album = deadbeef->pl_find_meta (track, "title");
+ }
v_iconname = artwork_plugin->get_album_art (fname, artist, album, deadbeef->conf_get_int ("notify.albumart_size", 64), cover_avail_callback, NULL);
deadbeef->pl_unlock ();
}