From ad384162bb0cbe366c91a1f1bf30c61a79a815d5 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 26 Feb 2011 21:28:14 +0100 Subject: artwork: added option to proportionally scale towards bigger side of an image notify: customizable icon/artwork size --- plugins/notify/notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/notify') 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 = { -- cgit v1.2.3