summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-29 22:35:39 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-29 22:35:39 +0100
commit2cae4b2ca6ce357e44db842551225d8d2b92e3f1 (patch)
tree7b525339281a62d20cbbc6a8b2b306d18c8eeb16 /plugins/lastfm
parent21bbd790c4e461e88cbc0a39fac971b7784e6920 (diff)
added option to disable nowplaying notifications in lastfm plugin
Diffstat (limited to 'plugins/lastfm')
-rw-r--r--plugins/lastfm/lastfm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index d188c5e6..ec53acd7 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -665,7 +665,7 @@ lfm_thread (void *ctx) {
trace ("lfm sending nowplaying...\n");
// try to send nowplaying
- if (lfm_nowplaying[0]) {
+ if (lfm_nowplaying[0] && !deadbeef->conf_get_int ("lastfm.disable_np", 0)) {
lfm_send_nowplaying ();
}
lfm_send_submissions ();
@@ -801,6 +801,7 @@ static const char settings_dlg[] =
"property Username entry lastfm.login \"\";\n"
"property Password password lastfm.password \"\";"
"property \"Scrobble URL\" entry lastfm.scrobbler_url \""SCROBBLER_URL_LFM"\";"
+ "property \"Disable nowplaying\" checkbox lastfm.disable_np 0;"
;
// define plugin interface