summaryrefslogtreecommitdiff
path: root/plugins/notify
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-02-26 21:28:14 +0100
committerGravatar waker <wakeroid@gmail.com>2011-02-26 21:28:14 +0100
commitad384162bb0cbe366c91a1f1bf30c61a79a815d5 (patch)
tree687cfb5e66647140e3fc1a1421c9a533279a4ede /plugins/notify
parent37a9075dd3de76f3e7d145b89de3eeafdffbbd8b (diff)
artwork: added option to proportionally scale towards bigger side of an image
notify: customizable icon/artwork size
Diffstat (limited to 'plugins/notify')
-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 = {