mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 06:53:27 +01:00
Merge pull request #3335 from malcops/feature/pm/acousticbrainz-extra-fields
Feature/pm/acousticbrainz extra fields
This commit is contained in:
commit
897100cb3b
4 changed files with 17 additions and 1 deletions
|
|
@ -74,6 +74,9 @@ ABSCHEME = {
|
|||
'sad': 'mood_sad'
|
||||
}
|
||||
},
|
||||
'moods_mirex': {
|
||||
'value': 'moods_mirex'
|
||||
},
|
||||
'ismir04_rhythm': {
|
||||
'value': 'rhythm'
|
||||
},
|
||||
|
|
@ -82,6 +85,9 @@ ABSCHEME = {
|
|||
'tonal': 'tonal'
|
||||
}
|
||||
},
|
||||
'timbre': {
|
||||
'value': 'timbre'
|
||||
},
|
||||
'voice_instrumental': {
|
||||
'value': 'voice_instrumental'
|
||||
},
|
||||
|
|
@ -124,7 +130,9 @@ class AcousticPlugin(plugins.BeetsPlugin):
|
|||
'mood_party': types.Float(6),
|
||||
'mood_relaxed': types.Float(6),
|
||||
'mood_sad': types.Float(6),
|
||||
'moods_mirex': types.STRING,
|
||||
'rhythm': types.Float(6),
|
||||
'timbre': types.STRING,
|
||||
'tonal': types.Float(6),
|
||||
'voice_instrumental': types.STRING,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,10 @@ New features:
|
|||
new ``discogs_albumid`` field from the Discogs API.
|
||||
Thanks to :user:`thedevilisinthedetails`.
|
||||
:bug:`465` :bug:`3322`
|
||||
* :doc:`/plugins/acousticbrainz`: The plugin now fetches two more additional
|
||||
fields: ``moods_mirex`` and ``timbre``.
|
||||
Thanks to :user:`malcops`.
|
||||
:bug:`2860`
|
||||
|
||||
Fixes:
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ these fields:
|
|||
* ``mood_party``
|
||||
* ``mood_relaxed``
|
||||
* ``mood_sad``
|
||||
* ``moods_mirex``
|
||||
* ``rhythm``
|
||||
* ``timbre``
|
||||
* ``tonal``
|
||||
* ``voice_instrumental``
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,9 @@ class MapDataToSchemeTest(unittest.TestCase):
|
|||
('danceable', 0.143928021193),
|
||||
('rhythm', 'VienneseWaltz'),
|
||||
('mood_electronic', 0.339881360531),
|
||||
('mood_happy', 0.0894767045975)
|
||||
('mood_happy', 0.0894767045975),
|
||||
('moods_mirex', "Cluster3"),
|
||||
('timbre', "bright")
|
||||
}
|
||||
self.assertEqual(mapping, expected)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue