From b4caa0e475f41ab0ece93153007a3747131ec3c8 Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Tue, 26 Jul 2016 15:42:35 +0200 Subject: [PATCH 1/3] Add BPM data with acousticbrainz The bpm plugin is a very slow way to add bpm data to songs, using the acousticbrainz plugin is much faster and can doesn't need a new plugin. --- beetsplug/acousticbrainz.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beetsplug/acousticbrainz.py b/beetsplug/acousticbrainz.py index df790b26f..d1dee855b 100644 --- a/beetsplug/acousticbrainz.py +++ b/beetsplug/acousticbrainz.py @@ -133,6 +133,9 @@ def fetch_info(log, items, write): item.average_loudness = get_value( "lowlevel", "average_loudness" ) + item.bpm = get_value( + "rhythm", "bpm" + ) item.chords_changes_rate = get_value( "tonal", "chords_changes_rate" ) From 6b193342b5cb3755de353108502a0ab12e49e78a Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Wed, 27 Jul 2016 20:15:35 +0200 Subject: [PATCH 2/3] Update changelog for PR #2143 --- docs/changelog.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 5b35ba9a3..12ea28850 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -25,6 +25,9 @@ The are a couple of small new features: filled-out path template for each file. :bug:`2050` * :doc:`/plugins/embyupdate`: The plugin can now use an API key instead of a password to authenticate with Emby. :bug:`2045` :bug:`2117` +* :doc:`/plugins/acousticbrainz`: The plugin now also adds a ``bpm``, when a + song can be found on AcousticBrainz, this is faster than using the bpm + plugin. And there are a few bug fixes too: From f1deb0c545452d4a4efc99ed6cd83328ebf4f998 Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Wed, 27 Jul 2016 20:16:06 +0200 Subject: [PATCH 3/3] Update AcousticBrainz docs for PR #2143 --- docs/plugins/acousticbrainz.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/plugins/acousticbrainz.rst b/docs/plugins/acousticbrainz.rst index 1e1b076f0..b66bf17de 100644 --- a/docs/plugins/acousticbrainz.rst +++ b/docs/plugins/acousticbrainz.rst @@ -14,6 +14,7 @@ For all tracks with a MusicBrainz recording ID, the plugin currently sets these fields: * ``average_loudness`` +* ``bpm`` * ``chords_changes_rate`` * ``chords_key`` * ``chords_number_rate``