summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar skodde <skodde@gmail.com>2014-02-12 22:19:42 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-05-05 22:08:36 +0200
commita458f10ba42c08e471cfdf54e18312d2925f60e7 (patch)
tree710abbbcabc727f1a8b03243b7e62fcb95e18c1b /plugins/lastfm
parent7aaa7d2297cac456c7d7744fd3e66a9ce019ac6a (diff)
lastfm: added an option to enable/disable sending musicbrainz track id
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 a7443e1c..fa36c74d 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -359,7 +359,7 @@ lfm_fetch_song_info (DB_playItem_t *song, float playtime, char *a, char *t, char
if (!deadbeef->pl_get_meta (song, "track", n, META_FIELD_SIZE)) {
*n = 0;
}
- if (!deadbeef->pl_get_meta (song, "musicbrainz_trackid", m, META_FIELD_SIZE)) {
+ if (!deadbeef->conf_get_int ("lastfm.mbid", 0) || !deadbeef->pl_get_meta (song, "musicbrainz_trackid", m, META_FIELD_SIZE)) {
*m = 0;
}
return 0;
@@ -973,6 +973,7 @@ static const char settings_dlg[] =
"property Password password lastfm.password \"\";"
"property \"Scrobble URL\" entry lastfm.scrobbler_url \""SCROBBLER_URL_LFM"\";"
"property \"Prefer Album Artist over Artist field\" checkbox lastfm.prefer_album_artist 0;"
+ "property \"Send MusicBrainz ID\" checkbox lastfm.mbid 0;"
;
// define plugin interface