summaryrefslogtreecommitdiff
path: root/plugins/notify/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/notify/notify.c')
-rw-r--r--plugins/notify/notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/notify/notify.c b/plugins/notify/notify.c
index 193f6bef..7d2ba5bb 100644
--- a/plugins/notify/notify.c
+++ b/plugins/notify/notify.c
@@ -195,7 +195,7 @@ static void show_notification (DB_playItem_t *track) {
if (deadbeef->conf_get_int("notify.albumart", 0) && artwork_plugin) {
const char *album = deadbeef->pl_find_meta (track, "album");
const char *artist = deadbeef->pl_find_meta (track, "artist");
- v_iconname = artwork_plugin->get_album_art (track->fname, artist, album, 48, cover_avail_callback, NULL);
+ v_iconname = artwork_plugin->get_album_art (track->fname, artist, album, deadbeef->conf_get_int ("notify.albumart_size", 64), cover_avail_callback, NULL);
}
if (!v_iconname) {
v_iconname = strdup ("deadbeef");
@@ -275,6 +275,7 @@ static const char settings_dlg[] =
"property \"Notification title format\" entry notify.format \"" NOTIFY_DEFAULT_TITLE "\";\n"
"property \"Notification content format\" entry notify.format_content \"" NOTIFY_DEFAULT_CONTENT "\";\n"
"property \"Show album art\" checkbox notify.albumart 1;\n"
+ "property \"Album art size (px)\" entry notify.albumart_size 64;\n"
;
DB_misc_t plugin = {